Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml

 
venki sheshgiri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm seeing couple of Servlets getting called without a Servlet mapping element being present in Deployment Descriptor.

The url being hit is http://mydomain.com/Approot/Servlet/com.mycompay.mypackage.ServletClassName.

Can anyone explain me how is this possible ?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a discredited way of doing things, and not to be used.

 
venki sheshgiri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear Bibeault ,

Thanks for the clarifications was not aware of the thing called InvokerServlet.

I need couple of more inputs w.r.t this.

1) Is this InvokerServlet part of Servlet 2.3\2.4 Specification
2) Is it something specific to Tomcat (The servlets are getting invoked in Websphere also.).
3) Where exactly is this InvokerServlet mapping is done (any standard xml file read by Web Containers).




 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. No - it was supposed to be a way for beginners to experiment rapidly without having to work with web.xml - turned out to have disastrous consequences when people tried to use it for serious work.
2. apparently not
3. see the "default" web.xml in the tomcat conf directory where it is commented out - tomcat5.5.9


Bill
 
venki sheshgiri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi William,

Thanks for the Info they were really Valuable.

Venki
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic