How to define <dispatcher> option for filters?

27 views
Skip to first unread message

Marcel Overdijk

unread,
Jan 23, 2013, 8:22:46 AM1/23/13
to google-guice
Hi,

I'm using the the servlet extension to bind filters.
The problem is I don't see how to add the <dispatcher> option to the
filter-mapping which is commonly used in web.xml variant.

E.g.:

<filter>
<filter-name>siteMeshFilter</filter-name>
<filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</
filter-class>
</filter>

<filter-mapping>
<filter-name>siteMeshFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>ERROR</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>

How should I do this in Guice?
Reply all
Reply to author
Forward
0 new messages