tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: url-pattern troubles...
Date Fri, 11 May 2007 00:22:57 GMT
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" <webzo2000@yahoo.com>
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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


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


Mime
View raw message