Diego Manilla Suárez wrote:

Hi! I need to implement some kind of security inside of an Action. When the user doesn't meet certain criteria, I must send him to the "forbidden" page. Right now I'm doing this:

if (!allowed) {
   response.sendError(HttpServletResponse.SC_FORBIDDEN);
   return null;
}

The problem is that the user is sent to the default error page of Tomcat, instead of the 403 page defined in web.xml. Are the lines above wrong?

Thanks in advance.


Ok, I found the problem: there was a filter that wasn't forwarding the error.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to