File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How to test a servlet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to test a servlet." Watch "How to test a servlet." New topic

How to test a servlet.

Ghazala Islam
Ranch Hand

Joined: Nov 22, 2000
Posts: 73
My question is very simple,I have downloaded apache webserver
its running fine.My question is how can I complie and run my
servlet,I mean in which directory to save it and in which directory to compile it,what are the commands and steps to compile and run a servelet.
Very simple question,isn't it!!!
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12756
Apache by itself can not run servlets or JSP. You need the Tomcat servlet engine. (
It comes with pretty good instructions plus example servlets and JSP.
Ghazala Islam
Ranch Hand

Joined: Nov 22, 2000
Posts: 73
Perhaps I made a mistake in my previous question regarding
how to test servlets,I have downloaded tomcat 3.1 not
apache web server.Tomcat's default page is displaying
from browser.I have gone through some documents in its docs
directory to how to install and run tomcat but it is very
lenghty and technical for a new user.My question is again
the same that which else software is required to test servlet
or no other is required?Second question is where can I store
and how can I compile servlets?
jQuery in Action, 2nd edition
subject: How to test a servlet.
Similar Threads
creating servlet
JAVA web server path mapping
Visibility of web site on port 8088
How to test servlets?