GeeCON Prague 2014*
The moose likes Servlets and the fly likes Servlets access directly. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets access directly." Watch "Servlets access directly." New topic
Author

Servlets access directly.

adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 268
Hi.
My doubt is can we access another servlet without doing servlet mapping in web.xml. If, how??
Directly in the sense forwarding from one servlet to other but without doing servlet mapping in web.xml.


Thanks and Regards.
Adeed
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 757
If you are using Servlet 3.0 container, then you could use this annotation to map the servlet without the need to fiddle with web.xml.



Jigar Naik


 
GeeCON Prague 2014
 
subject: Servlets access directly.