users@glassfish.java.net

Re: Change page marked "Forbidden" when resource not ...

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Tue, 05 Mar 2013 10:53:12 -0800

I have tried to add a xml code snapshot in the post message. But it was
removed.
The xml element that you need to add is error-page, error-code and location.

On 3/5/13 10:44 AM, forums_at_java.net wrote:
> "forbidden" corresponding to error code 403. And one can configure the
> error
> page in web.xml. For instance, adding the following code in your
> web.xml 403
> /error403.jsp
>
> --
>
> [Message sent by forum member 'swchan2']
>
> View Post: http://forums.java.net/node/895415
>
>