On Wed, 26 Mar 2003, Stefan Schwarzer wrote:
> On Wed, 19 Mar 2003, Russell von Blank wrote:
> > I do not mean to ask the question a second time, but I have looked over the
> > existing documentation and have not discovered any reference to customizing
> > the error page.  I can change the code inside webkit, but then that would
> > have to be adjusted everytime there is a new release, etc.  Is there a
> > "standard" way to implement a custom error page through inheritence?
>
> I'm not completely sure if I understand you correctly; in our
> Apache 1.3 configuration we have something like
>
> 404 ErrorDocument /public/notfound
>
> The URL points to a Webware servlet which displays a custom error
> page.

Oops, it must be "ErrorDocument 404 /public/notfound".

However, I noted that this works only for URLs "before" WebKit is
involved; the WebKit error message is still the same, but can be
modified by editing the file 404Text.txt .

Because I don't want to edit the file everytime I change the layout,
I've used contextInitialize to provide another method in the
Application object. Currently, that method sends a redirect to my
notfound page.

Though, to pass the bad URL, I would have to resort to a GET request
like /public/notfound?badurl=... . Is there another way to pass the
URL to the servlet? For example, is it possible to cleanly invoke a
servlet from Application.handleBadURL?

Stefan


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to