Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<url-pattern> syntax

Status
Not open for further replies.

jcirgic

Programmer
Jul 14, 2004
1
BA
I am trying to deploy a jsp application to tomcat 5.2 but I am getting errors because of the filter-mapping tags I am using. This is the relevant part of my web.xml file:

<!-- OK -->
<filter-mapping>
<filter-name>ADFBindingFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ADFBindingFilter</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ADFBindingFilter</filter-name>
<servlet-name>action</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>ADFBindingFilter</filter-name>
<servlet-name>jsp</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>LoginCheckFilter</filter-name>
<servlet-name>action</servlet-name>
</filter-mapping>
<!-- OK -->

<!— NOT OK -->
<filter-mapping>
<filter-name>CheckUnosRole</filter-name>
<url-pattern>admin.do</url-pattern>
</filter-mapping>
<!— NOT OK -->

Tomcat complains about the part marked with NOT OK. It says that the url-pattern has syntax error. Mapping the filter to: .do, .jsp or jsp (as in the OK part) works fine. But, I need to map some filters to specific actions, like 'myAction.do'. How am I supposed to do that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top