You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cecile Mercado <ce...@radianse.com> on 2003/07/22 21:19:28 UTC

creating Not Authorized page with JDBCRealm

Hello! I'm using Tomcat 4.1 and Struts 1.1.  I'm using JDBCRealm to
authenticate users.  It works mostly great: If user is authorized, it goes
to the protected page.  If user and password are not found in the database
pointed to by the JDBCRealm, then it goes to the page pointed to by
<form-error-page> in my web.xml.  The problem is that if a user and password
are found in the database, but that user does not have the proper role and
is not allowed access, I get the HTTP Status 403 error screen ("Access to
the requested resource has been denied").  I would like to display a more
user-friendly page instead (politely informing the user that he/she does not
have the proper authority to use the module).  Can anyone tell me how to do
this?

- Cecile



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org