wood burning stoves 2.0*
The moose likes Servlets and the fly likes Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml" Watch "Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml" New topic
Author

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

venki sheshgiri
Greenhorn

Joined: Jan 01, 2006
Posts: 28

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

Joined: Jan 10, 2002
Posts: 61224
    
  66

That's a discredited way of doing things, and not to be used.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
venki sheshgiri
Greenhorn

Joined: Jan 01, 2006
Posts: 28
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

Joined: Mar 22, 2000
Posts: 12788
    
    5
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

Joined: Jan 01, 2006
Posts: 28
Hi William,

Thanks for the Info they were really Valuable.

Venki
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml