url - Implement a "Cancel" link in Struts 2 that returns to the previous page, one of multiple callers? -


i need implement link on page "cancel" takes user page on. think can use dynamic result have caller pass in action need return to. described in: struts2 - how dynamic url redirects?

but each of callers have different parameters page specify state in. how reset state action variables before redirect previous action?

you need save state "caller" in session, , pass reference via parameter of action. using parameter value retrieve state , reinitialize action. it's done if save request url of "caller" in session , redirect on "cancel" redirect result supplying url dynamic parameter.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -