Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding servlet-mapping

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can the below one is a valid URL mapping inside a <url-pattern> subelement of <servlet-mapping> element
/*.jsp (i.e can we put "/" before '*.jsp')
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"/" should not precede *.jsp
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sayak but how about this one

*/*
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*/* won't work but *.* would.
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sayak..

I am not getting the answer between these 2...mapppings

MyTest/*.jsp

and

MyTest

Which would work..??
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None of them would work....however /MyTest is fine

It appears that you really need to study url-mapping in detail....you're too confused...you can refer to the spec....that would help
[ January 08, 2007: Message edited by: Sayak Banerjee ]
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure Sayak..
 
Bob CHOI
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
three mapping scheme below,

- exact match, beginning with "/", e.g. /abc/efg
- path match, beginning with "/" and ending with *, e.g. /123/456/*
- extension match, simply like *.ext
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic