Hi friends, i am iam installing Apache Tomcat 4.1.24.I am write a static html page ,in that a text to be entered.After clicking the submit button to handle a servlet to get the parameter of the text. In form action="http:\localhost:8080\examples\servlet\Handleget"
Where should i place html page and where should i place servlet class.
Please give detaile descreption to handle servlets in Tomcat4.1.24.
regards, Narasimha reddy.
Joined: Oct 12, 2004
place your html pages in example directory and palce your classes in WEB-INF/classes directory
Narasimha, I've written some small example apps that you can just drop into the webapps directory of a running instance of Tomcat and run. Any one of these will show you the proper directory structure for a Servlet/JSP app along with simple examples of how to map servlets in web.xml. Simple Servlet Example
In a nutshell, your directory structure should look like this. Under the TOMCAT_HOME/webapps directory: