Comment #5 on issue 372 by tobiasapt: GuiceFilter breaks dispatching to jsp
if jasper is being used to compile the jsp
http://code.google.com/p/google-guice/issues/detail?id=372
I've come up with a work around that works for Jasper. Jasper looks for a
request
attribute "org.apache.catalina.jsp_file" and uses that before it checks
request.getServletPath(). I tried simply setting the attribute but it gets
blown
away at some point during during the request.
public class JSPFixGuiceFilter extends GuiceFilter{
@Override
public void doFilter(ServletRequest request,
ServletResponse response, FilterChain filterChain)
throws IOException, ServletException {
request = new
HttpServletRequestWrapper((HttpServletRequest)request){
@Override
public Object getAttribute(String name) {
if("org.apache.catalina.jsp_file".equals(name)){
return
super.getServletPath();
}
return super.getAttribute(name);
}
};
super.doFilter(request, response, filterChain);
}
}
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.