ServletModule and dispatch

21 views
Skip to first unread message

Robert Voliva

unread,
Aug 15, 2011, 3:55:09 PM8/15/11
to google-guice
I'm trying to setup a 404 page that needs to be filtered through my
Wicket filter for some functionality. I have this in my
ServletModule:

filter("/*").through(WicketGuiceFilter.class, wicketFilterInitParams);

where WicketGuiceFilter extends Wicket's WicketFilter

But what I need is to also define the REQUEST and ERROR dispatchers.
In the web.xml I would have done:

<filter-mapping>
<filter-name>WicketGuiceFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>

Any ideas as to how I could accomplish this with ServletModule?

Thanks,
Bobby
Reply all
Reply to author
Forward
0 new messages