in /WEB-INF/web.xml you have something like
<servlet>
     <servlet-name>ServletName</servlet-name>
     <servlet-class>package.ServletClass</servlet-class>
</servlet>
<servlet-mapping>
       <servlet-name>ServletName</servlet-name>
       <url-pattern>/servlet/Servlet</url-pattern>
</servlet-mapping>

/servlet/Servlet maps to 'ServletName' identifier
'ServletName' identifier is served by package.ServletClass

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "webzo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, May 10, 2007 7:41 PM
Subject: 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 Q&A.
http://answers.yahoo.com/dir/?link=list&sid=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]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to