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?
<!-- 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?