-
Sep 19th, 2011, 01:49 PM
#11
Thanks for the reply Dave. Yes you are right i am using customized authentication so the access="ROLE_USER" is redundant. But my main concern is
filter behavior.You can see my filter implementation as below. I just need to set a HTTP header in response.
public class ResponseFilter implements Filter{
@Override
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletResponse httpResponse = (HttpServletResponse)response;
httpResponse.setHeader("Language", "English");
chain.doFilter(request, response);
}
}
-
Sep 21st, 2011, 10:23 AM
#12
That should work, so I guess you have a problem with your configuration somewhere (or else in the container, but that would be surprising). Can you debug into the filter chain and see why this filter is not being called? Or put a log statement in at least?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules