hi,
Simply put
1) in the webapps folder make "mysite" folder, in that make "WEB-INF" folder and in that classes forlder
webapps
+ mysite
+ WEB-INF
+ classes
2) create a simple html file with action set to "http://localhost:8080/mysite/servlet/HelloServlet" and save it as index.html
the code will be...
<form action="http://localhost:8080/mysite/servlet/HelloServlet" method=get>
<input type=submit value="Go To Servlet">
</form>
3) create and compile a simple servlet
This servlet must have a doGet() method which print out the "Hello World"
message to client. This servlet class has to be in classes folder.
4) have web.xml (web descriptor) file in WEB-INF folder
5) go to your html page by typing
http://localhost:8080/mysite/ in the web browser after starting
tomcat and bingo....
For details do read the recommended book...
Maki Jav