jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes access to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "access to servlet" Watch "access to servlet" New topic

access to servlet

prabaha reddy

Joined: Dec 16, 2004
Posts: 13
as far i read there are two ways to access servlets in Tomcat


so my doubt is will the second url works for tomcat5.x
cool boss

Joined: Jan 05, 2005
Posts: 1
A servlet can be called with any name. You just have to add the url mapping for the servlet in the web.xml properly. The second is only a convention not another "method".

zip it up...<br />CooolBoss
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

By default, the invoker servlet is disabled in modern versions of Tomcat.
This means that the second method won't work unless you uncomment the entries for it in TOMCAT_HOME/conf/server.xml.

Read this to see why you shouldn't:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link: http://aspose.com/file-tools
subject: access to servlet
It's not a secret anymore!