• 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

URL Pettern

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks seetharaman.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you are welcome
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The meaning of most suits is "the longest possible match"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic