Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling Servlet with out web.xml

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to call a servlet with out using web.xml
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 225
IBM DB2 Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
grgowtham_cse@yahoo.com
Capricornsys inc, Hyderabad
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic