Here is an excerpt from page 440 of the Developing Applications with JRun
manual. I have not personally tried this but it looks pretty
straightforward.
HTH
-Randy Nielsen
Allaire Corp.
During the processing of a Web application, JRun can detect many different
types of HTTP errors. Upon detecting an HTTP error, JRun displays a standard
error message back to the client.
Within a Web application's web.xml file, you can set your own error pages to
handle HTTP errors detected by JRun. This allows you to deliver custom error
pages to a client in the event of an HTTP error.
Note Since a web.xml file is associated with a single application, you can
have
different error pages for each application. However, there is no way to
specify a global error page for all applications within a single JRun
server.
The following excerpt from an application's web.xml file causes JRun to
display the page 403.html in the event of an HTTP 403 error.
<error-page>
<error-code>403</error-code>
<location>/403.html</location>
</error-page>
-----Original Message-----
From: Victor Marinelli [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 7:34 AM
To: JRun-Talk
Subject: Re: custom error page for "HTTP 403"
Can someone from Allaire or the group please respond to this? Is there a way
to specify a custom error page for HTTP 403 (access
denied) errors? If you are assigning specific pages in your web application
to a 'role', and a user who tries to access one of these pages is not in
that role, IE returns (403:you are not authorized to access this page or
directory) and Netscape returns (403:forbidden). The problem with using the
browser default 403 pages is that it is very sloppy looking and the users
(at least the users we support!) will more than likely flood our help desk
with calls because they will think the server is down or something.
Please help!
Victor
----- Original Message -----
From: Victor Marinelli <[EMAIL PROTECTED]>
To: JRun-Talk <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 4:56 PM
Subject: custom error page for "HTTP 403"
> Using the following excerpt from web.xml, you can specifiy a custom error
> page for HTTP 401 errors:
>
> <login-config>
> <auth-method>FORM</auth-method>
> <form-login-config>
> <form-login-page>/login.htm</form-login-page>
> <form-error-page>/loginerror.htm</form-error-page>
> </form-login-config>
> </login-config>
>
>
>
> Is there a similar way to specify a custom error page for HTTP 403 (access
> denied) errors?
>
>
>
>
> Thanks,
> Victor
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists