Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i use regular expression in web.xml

 
Abhishek Mehta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I have a problem in using regular expression in web.xml.
Actually i am using a Servlet Filter but one page create problem with it and i want to bypass this page. Can i use regular expression in web.xml to prevent the servlet filter to get invoked for particular that page and invoked for all rest of the pages.

please help me out, if anyone of you has done it before and have any idea regarding this. i welcome any new suggestion to overcome this problem.

Thanks
Abhishek
 
Indraneel A Das
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i use regular expression in web.xml to prevent the servlet filter to get invoked for particular that page and invoked for all rest of the pages.

One approach is to use Resin 3.0 to implement regular expression in web.xml.
Take a look at path-mapping using resin

Experts may throw more light on this.
 
Sharad Agarwal
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhishek,

Isn't this a continuation of this thread?

Please refrain from double-posting, it is one of the few rules at the JavaRanch.
[ June 23, 2005: Message edited by: Sharad Agarwal ]
 
Abhishek Mehta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am sorry, actually the earlier post was related to servlet filter and this was regarding regular exp.
i will take care in future.

well the link that you gave in earlier post didnt have much information regarding my query

could you please send me some more links regarding regular exp..
any working example will do great work

thanks
Abhishek
 
Sharad Agarwal
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem, I had pointed you to the Jakarata ORO page. They have an excellent demo page here.

Are you looking for code examples? You should be able to get some from the site and the Javadoc. If there is a specific regex that you need help with, let us know. We might be able to help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic