• 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

Query on url-pattern element of web.xml file ??

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all friends,
If my web application's web.xml file contains this:
<filter-mapping>
<filter-name>Test Filter</filter-name>
<url-pattern>/*.jsp</url-pattern>
</filter-mapping>
then the filter doesn't run when I invoke a JSP in the application's top-level directory.
If I change the url-pattern to this:
<url-pattern>*.jsp</url-pattern>
then the filter does run.
Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about <url-pattern> element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about <url-pattern> element in case of <servlet-mapping>.Any help will be highly appreciated.
Regards
Bikash
[ September 16, 2003: Message edited by: Bikash Paul ]
 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I sort of explain it here. How is the JSP getting called?
reply
    Bookmark Topic Watch Topic
  • New Topic