Hi Everyone; I know this will probably be a really stupid question but you'll have to forgive me. I was wondering if you need to have Tomact in order to use servlets? I know that with JSPs you do, and that JSPs are transformed into servlets but I want to use servlets in a web application and I was just planning on calling the servlets within my HTML page. Is that even possible?:confused
-- <br />Dianna M. McDonald<br />Web & Usability Geek<br />"Girls like computers too!"<br />website:http://www.girlgeek.ca
Dianna, Yes. Tomcat can be used to serve servlets , jsps and htmls. Place your HelloServlet.class like this. C:\jakarta-tomcat\webapps\MISApp\WEB-INF\classes\HelloServlet.class and call from browser http://localhost:8080/MISApp/servlet/HelloServlet A sample html is :
regds maha anna [This message has been edited by maha anna (edited May 15, 2001).]
Strictly you don't need Tomcat. Any servlet container will do. Tomcat is the official reference platform, but there are plenty of others both free and paid-for. Lots of us use Resin, available from http://www.caucho.com/ and many people reckon it's both faster in operation and easier to install and configure than Tomcat.
Sun used to have a web development kit that contained a web server that served servlets and jsps. It's not robust enough for any kind of production environment (it was put out for studying the tutorials). I'm not sure if it's still out there, but I'm sure I have a copy laying around. You could email me for it.