File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes calling Servlet with out web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "calling Servlet with out web.xml" Watch "calling Servlet with out web.xml" New topic

calling Servlet with out web.xml

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
how to call a servlet with out using web.xml
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
We can do that with earlier version of Tomcat. Read about invoker servlet. But its a sin. Check out Javaranch FAQs.
[ April 16, 2005: Message edited by: Adeel Ansari ]
Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225

hi ...

I dont think so w.o configuring the servlet name class and url pattern in WEB.XML ..

how come we call servlet ..

If there's any way let me know..
Thx and Regards
G R Ganesh Gowtham
Capricornsys inc, Hyderabad

Thanks, Ganesh Gowtham
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

As Adeel said, Tomcat used to ship with an invoker servlet that allowed you to enter the package and class name of the servlet.
It turned out to be a disaster (see link in Adee's post) and has been disabled in recent versions.

The commented out configuration lines can be found in TOMCAT_HOME/conf/web.xml.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: calling Servlet with out web.xml
It's not a secret anymore!