• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

valid url mapping question

 
shiv kedia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
valid url mapping question ( choose 3)

1. */*
2. /*.do
3. myservlet
4. /myservlet
5. /myservlet/*
6. myservlet/*.jsp

my answer is : 4 ,5,?

hi ranchers ur answer
 
agrah upadhyay
Ranch Hand
Posts: 579
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(4),(5),(6)
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(6) is NOT correct. What ever you specify in the url-patten should be relative to current context root. Which means it should start with an slash ("/")
 
Lux Gupta
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It need not start with /. It is not at all mandatory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic