You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephen Ting <st...@shinyang.com.my> on 2003/11/05 08:51:28 UTC
custom error page
I created a custom error page, and it's work. However, I need to include
some additional message, such as user not in the role to access that
page or etc, such as message shown below from tomcat default error page.
Can somebody give me some pointer how to archive this?
HTTP Status 400 - User is not authorized to access action
/SylSearchLogReceivingHeader
------------------------------------------------------------------------
--------
type Status report
message User is not authorized to access action
/SylSearchLogReceivingHeader
description The request sent by the client was syntactically incorrect
(User is not authorized to access action /SylSearchLogReceivingHeader).
------------------------------------------------------------------------
--------
Apache Tomcat/4.1.27-LE-jdk14
Regards,
Stephen Ting
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: custom error page
Posted by Tim Funk <fu...@joedog.org>.
Try using request.getRemoteUser(). Since authentication was successful but
authorization was not, I am unsure if that method will return the desired value.
-Tim
Stephen Ting wrote:
> I created a custom error page, and it's work. However, I need to include
> some additional message, such as user not in the role to access that
> page or etc, such as message shown below from tomcat default error page.
> Can somebody give me some pointer how to archive this?
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org