How to map a filter to a servlet using guice-servlet?

13 views
Skip to first unread message

July

unread,
Jan 27, 2012, 1:06:33 AM1/27/12
to google...@googlegroups.com

With Guice-servlet we can easily do servlet mapping like this: filter(*.jsp).through(MyFilter.class)

However could anyone tell me how can i map a filter to a servlet?

<filter-mapping>
  <filter-name>Reporter</filter-name>
  <servlet-name>SomeServletName</servlet-name>
</filter-mapping>

Thanks


stackoverflow: http://stackoverflow.com/questions/9021672/how-to-map-a-filter-to-a-servlet-using-guice-servlet

Reply all
Reply to author
Forward
0 new messages