Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Request mapping to servlets  RSS feed

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I am reading about servlet 2.4 specification.
I have some confusions about request mapping..
1. Example if i have a request at address : http://localhost:8888/app/dir1/dir2/Main.servlet
What is the request object and context path from that request?
2. There is statement :
"A string containing only the �/� character indicates the "default" servlet of the
application. In this case the servlet path is the request URI minus the context
path and the path info is null."
What is the meaning of "default" servlet and path info?
thanks
daniel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!