• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting extra path info

 
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Suppose :
http://localhost:8080/mycontext/MyServlet/ExtraPathInfo
Where "MyServlet" is the actual servlet.

How can I get the Extra Path Info ? When I try with this URL the tomcat container looks for servlet with name "ExtraPathInfo" and not "MyServlet" which is the obvious behaviour.

Is there any configuration related thing that I need to take care of ?

Waiting for replies,


Nitin Dubey
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to define the mapping as /MyServlet/*, and maybe /MyServlet/ depending on your requirements.
 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx. that worked
 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Suppose :
http://localhost:8080/mycontext/MyServlet/ExtraPathInfo
Where "MyServlet" is the actual servlet.

How can I get the Extra Path Info ?



Use request.getPathInfo()..
 
reply
    Bookmark Topic Watch Topic
  • New Topic