struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schachter, Michael" <>
Subject Volunteer: Referer-Based Forwards
Date Mon, 02 Oct 2000 18:40:56 GMT
I created a class for referer-based forwards called "RefererActionForward".
It retrieves the "Referer" HTTP header and sends a redirect through the
response to the referer page.  A forward to the page isn't possible due to
the use of RequestDispatcher in ActionServlet to forward, and is documented
in the RefererActionForward class.

Current problems with this include that the ERROR_KEY attribute used to save
errors doesn't seem to go across the re-direct and no errors are displayed.
A possible solution to this if desired would be to somehow append the
name-value pair of ERROR_KEY (if any) to the "path" url attribute of the
RefererActionForward instance so that the key can still be obtained through
the request object.

Attached is


View raw message