I use ActionError but I want to show errors (that are no validation errors) thrown by a backoffice on a separate errorpage. Since I don't know which Action results in an error to the errorpage, I cannot redirect to that Action. At least I don't know how. That's why I try to send them back to the previous page from where they can correct the error.

I lose parameters with GET, because when I ask request.getParameter(..) it gives me null.

Isn't there a way to redirect to the previous page, without doing history.back()?

L.Teitsma



From: Gemes Tibor <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Back button without getting Page expired
Date: Thu, 14 Nov 2002 13:02:56 +0100

2002. november 14. 12:56 dátummal L Teitsma ezt írtad:

> I have to set nocache to true, because some of my Actions aren't executed
> because they or their URL's are cached. The consequence is that the
> back-button on my errorpage results in a "Page expired". This because it a
> javascript:history.back(). I cannot use GET instead of POST, because then I
> lose my parameters and have to do a lot of coding to fix that and I don't
> have time. How can I code the back button?

Why would you lose parameters w/ GET?

Do not put history.back() to the errorpage, but any other link which takes you
to an action.

On the other hand I try to avoid errorpage as good as I can, and handle my
errors with ActionError and Exception.

I get my errorpage only in development time and in extreme exceptional cases
(eg db was shut down).

Hth,

Tib

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

_________________________________________________________________
Surf voor nieuws, fileinformatie & entertainment naar MSN http://www.msn.nl/intmap/default.asp


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

Reply via email to