Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test a servlet.

 
Ghazala Islam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache by itself can not run servlets or JSP. You need the Tomcat servlet engine. (jakarta.apache.org)
It comes with pretty good instructions plus example servlets and JSP.
Bill
 
Ghazala Islam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic