aspose file tools*
The moose likes Servlets and the fly likes servlets without  worrying about the mapping? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets without  worrying about the mapping?" Watch "servlets without  worrying about the mapping?" New topic
Author

servlets without worrying about the mapping?

panindra nath
Greenhorn

Joined: Jan 23, 2008
Posts: 1
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

Joined: Mar 22, 2000
Posts: 12789
    
    5
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.
 
subject: servlets without worrying about the mapping?