[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Filter and servlet mappings
adamw
do-not-reply at jboss.com
Thu Jul 13 11:41:15 EDT 2006
Hello,
I have a servlet mapped to /*:
| <servlet-mapping>
| <servlet-name>myServlet</servlet-name>
| <url-pattern>/*</url-pattern>
| </servlet-mapping>
|
and a filter mapped to /something/*:
| <filter-mapping>
| <filter-name>myFilter</filter-name>
| <url-pattern>/something/*</url-pattern>
| <dispatcher>INCLUDE</dispatcher>
| <dispatcher>FORWARD</dispatcher>
| </filter-mapping>
|
At some point in my servlet, I forward the request:
| response.setContentType("text/html");
| request.getRequestDispatcher("/something/sth2").forward(request, response);
|
However, the filter doesn't get invoked. The request goes straight to the servlet. Why is that?
--
Cheers,
Adam
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957788#3957788
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957788
More information about the jboss-user
mailing list