aspose file tools*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "access to servlet" Watch "access to servlet" New topic
Author

access to servlet

prabaha reddy
Greenhorn

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

http://localhost:8080/webapp-name/urlpattern
or
http://localhost:8080/webapp-name/servlet/servlet-name

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

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
Sheriff

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:
http://jakarta.apache.org/tomcat/faq/misc.html#evil


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
 
Similar Threads
cant run packaged servlet - Pz Help
where to put servlets? (searched 1st)
HttpStatsuError
Problem in opening my Servlet in the browser...
Problem in using Apache myfaces & tiles