• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL Pettern

 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If two url petterns matches the cilent request which servlet will execute , how the priority on url petterns will be there.
Example
servletName Url Pettern
MyServlet *.do
SampleServlet /test/*
ExampleServlet /test/runServlet.do

problems
1.if the request RUL is /test/runServlet.do which servlet executes.
2. if ExampleServlet is not there in web.xml , and if the url is /test/runServlet.do which servlet will execute.
[ August 18, 2008: Message edited by: Chintu sirivennela ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chintu sirivennela:
1.if the request RUL is /test/runServlet.do which servlet executes.
2. if ExampleServlet is not there in web.xml , and if the url is /test/runServlet.do which servlet will execute.

[ August 18, 2008: Message edited by: Chintu sirivennela ][/QB]


1.if the request RUL is /test/runServlet.do which servlet executes.
Answare:ExampleServlet

2. if ExampleServlet is not there in web.xml , and if the url is /test/runServlet.do which servlet will execute.
Answare:SampleServlet

Note:container choose servlet according to the most suits request

Hope This Helps
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks seetharaman.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are welcome
 
Baddy Davay
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The meaning of most suits is "the longest possible match"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic