OK. so basically what I would like to do is the set a list of object to the HttpServletRequest
as a parameter like this:
request.setAttribute("Param", objs);
And then I want to modify the list of these object in a filter so I can delete a few which the user is not authorized to see.
like this:
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
chain.doFilter(request, response);
request.removeAttribute("Param");
}
But it doesn't do anything. Can anybody help me?