How can I get an action to forward back to the page it was requested from?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mark_Williamson
Posted On:   Thursday, September 4, 2003 02:29 AM

I am calling an action, but this action can be called from many different pages (hence from different URLs).



Basically, the action stores a value on an object for later use, and should then return the user back to the same page, so I need the action to be able to forward itself back to the page the action was requested from.



Usually, I would expect to use something like HTTP_REFERRER, but i don't seem to be able to get hold of it, plus I would have thought Struts would have a way of doing this already?



Can anyone help me, please?



Thanks



Mark

Re: How can I get an action to forward back to the page it was requested from?

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, September 4, 2003 06:45 AM

Add a hidden parameter, to each page, that tells you which page forwarded to you.

About | Sitemap | Contact