Can you use the Referer request header?

That tells what page you just came from, be wary though as some proxies will
strip that.

----- Original Message ----- 
From: "Mike Porter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 1:46 PM
Subject: [OS-webwork] WW2 Return To Page


> Gang,
> I have a WW page that I can get to from 2 different places.  When the
users
> is done with the target page, they should return back to the correct
calling
> page.
> In my WW XWork.xml file I currently have a dispatch mapping that returns
me
> to only ONE page. Sort of hard coded.
>
> I was just about to implement a solution where I send a parameter to the
> target page called returnToPage=pageA. The target jsp would put this value
> into a hidden field.  Then my Action would read this value and use this
> value as the RETURN parameter for the execute() method.  I would then have
> dispatch mappings for both pageA and pageB...
>
> This approach seems ugly. Are there smarter ways of doing the same thing?
> IE: determining dynamically what the dispatch should be based on where the
> user was coming from?
>
> Mike
>
>
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to