RE: url-pattern troubles...
The annoying thing about it is, that you cannot use a pattern that says ignore /protected/include. Thus, you must specify patterns for all subdirectories that shall be protected separately. Matthias -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, May 11, 2007 2:45 AM To: Tomcat Users List Subject: Re: url-pattern troubles... On 5/10/07, webzo [EMAIL PROTECTED] wrote: Ok, this should have been simple. But Tomcat doesn't seem to be doing what I thought it would- I have a bunch of jsp files under a directory called protected. I want a filter to be invoked when these files are accessed. I also have a directory called includes under protected. I DON'T want the filter to be invoked when files under includes are accessed. I cannot change this directory structure. I used the pattern /protected/*.jsp for the filter in question BZZZT. See the Servlet Spec -- SRV.11.2 Your pattern is invalid (and so is /*.jsp -- if that actually worked, it's a bug.) The url-pattern isn't a wide-open regexp, so I think you'll have to change your Filter to ignore the includes subdirectory, unless you can differentiate based on the request type (client request, forward, include -- see SRV.6.2.5). HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: url-pattern troubles...
Thanks all. As long as I am not missing something and thats how it works, I guess nothing much I can do about it. Av - Original Message From: Reich, Matthias [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, May 11, 2007 4:09:02 AM Subject: RE: url-pattern troubles... The annoying thing about it is, that you cannot use a pattern that says ignore /protected/include. Thus, you must specify patterns for all subdirectories that shall be protected separately. Matthias -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, May 11, 2007 2:45 AM To: Tomcat Users List Subject: Re: url-pattern troubles... On 5/10/07, webzo [EMAIL PROTECTED] wrote: Ok, this should have been simple. But Tomcat doesn't seem to be doing what I thought it would- I have a bunch of jsp files under a directory called protected. I want a filter to be invoked when these files are accessed. I also have a directory called includes under protected. I DON'T want the filter to be invoked when files under includes are accessed. I cannot change this directory structure. I used the pattern /protected/*.jsp for the filter in question BZZZT. See the Servlet Spec -- SRV.11.2 Your pattern is invalid (and so is /*.jsp -- if that actually worked, it's a bug.) The url-pattern isn't a wide-open regexp, so I think you'll have to change your Filter to ignore the includes subdirectory, unless you can differentiate based on the request type (client request, forward, include -- see SRV.6.2.5). HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url-pattern troubles...
Ok, this should have been simple. But Tomcat doesn't seem to be doing what I thought it would- I have a bunch of jsp files under a directory called protected. I want a filter to be invoked when these files are accessed. I also have a directory called includes under protected. I DON'T want the filter to be invoked when files under includes are accessed. I cannot change this directory structure. I used the pattern /protected/*.jsp for the filter in question and hoped that Tomcat will realize that I want the filter invoked only for those files under protected. However, Tomcat doesn't like the pattern (I get a stacktrace- Invalid url-pattern...). Tomcat doesn't complain about /*.jsp or /protected/* (except it invokes the filter for all the files under /protected/includes), but it complains about /protected/*.jsp. So, whats the pattern to use? Thanks, Av. Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: url-pattern troubles...
On 5/10/07, webzo [EMAIL PROTECTED] wrote: Ok, this should have been simple. But Tomcat doesn't seem to be doing what I thought it would- I have a bunch of jsp files under a directory called protected. I want a filter to be invoked when these files are accessed. I also have a directory called includes under protected. I DON'T want the filter to be invoked when files under includes are accessed. I cannot change this directory structure. I used the pattern /protected/*.jsp for the filter in question BZZZT. See the Servlet Spec -- SRV.11.2 Your pattern is invalid (and so is /*.jsp -- if that actually worked, it's a bug.) The url-pattern isn't a wide-open regexp, so I think you'll have to change your Filter to ignore the includes subdirectory, unless you can differentiate based on the request type (client request, forward, include -- see SRV.6.2.5). HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]