I have a simple question on best means to implement this using struts: (perhaps simple javascript may work?)
Say there are 3 pages A, B, C with : A having links to B & C. B having a link to C.
A -> B, C
B -> C
The route of reaching C determines the return button action in page C.
So if one reaches page C from A, the return should take back to A.
But SAME return button should take back to page B, if approached from B.
What's the best struts way to do this (without getting tempted to do a javascript thing:
<a href="javascript:history.go(-1)">GO BACK</a>