File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Humour Me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Humour Me" Watch "Humour Me" New topic

Humour Me

Dianna McDonald

Joined: Jan 24, 2001
Posts: 23
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:
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 782

JSPs are compiled into servlets and then the servlets are executed within a Servlet container. Yes you will need Tomcat.
As to your second question, the answer is yes.


maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Yes. Tomcat can be used to serve servlets , jsps and htmls. Place your HelloServlet.class like this.
and call from browser http://localhost:8080/MISApp/servlet/HelloServlet
A sample html is :

maha anna
[This message has been edited by maha anna (edited May 15, 2001).]
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
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 and many people reckon it's both faster in operation and easier to install and configure than Tomcat.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Joe McGuire
Ranch Hand

Joined: Mar 19, 2001
Posts: 293
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.
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Orion is worth a look as well. It's a pure-Java, complete J2EE server, free for development purposes, and a doddle to set up.
- Peter
Dianna McDonald

Joined: Jan 24, 2001
Posts: 23
Thanks for all the suggestions, I will let you know how everything goes.
I agree. Here's the link:
subject: Humour Me
jQuery in Action, 3rd edition