File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets without worrying about the mapping?

 
panindra nath
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i m new to this forum....

i compiled 2 servlets and copied the class files under C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes ...suppose the two class files are s1.class and s2.class... i got the output for s1 by making changes in web.xml(modifying url and servlet class) ....now my question is how can i execute s2?.....can i actually run all servlets without having to worry about the mapping?

thanks......
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13044
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i actually run all servlets without having to worry about the mapping?


If you are going to work with servlets you need to learn all about the use of the web.xml deployment descriptor. Shortcuts will eventually get you in trouble.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic