Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

access to servlet

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!