• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets access directly.

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic