struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <>
Subject Re: dynamic return when validation failed
Date Wed, 08 Jul 2009 16:52:25 GMT
The referer header will contain the URL of the last request, which will be
the action URL not the jsp page that rendered the result. So this wouldn't
help the OP if I understood his problem.

On Wed, Jul 8, 2009 at 11:50 AM, Dale Newfield <> wrote:

> Greg Lindholm wrote:
>> There is nothing in a request that will tell you which page you came from
>> unless you put it there (as with the hidden parameter).
> While this is mostly true, it's not 100% true.  HTTP has a "referer" (yes,
> misspelled in the spec) field so most of the time you can know from where a
> link came or a post was posted (assuming this value is provided by the
> browser).  Note, all it provides is the URL of that previous page, so if
> that's not specific enough you're still SOL.
> -Dale
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message