You could have different aliases for the same Action... You could also develop a breadcrumb Interceptor which keeps track of the last 5 or 10 Actions you hit and saves it in the Session, then use that to see where you came from...
> -----Original Message----- > From: Mike Porter [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 11, 2004 1:46 PM > To: [EMAIL PROTECTED] > 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_id56&alloc_id438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork