Thanks Merrill for your quick response.
Yes, I created a
string property for hidden variable in my form bean.
What I am not sure is how to populate this variable with previous action url in my action class.
Ex: I have 10 action classes - a.do, a1.do,a2.do..a10.do are generating a.jsp, a1.jsp...a10.jsp respectively. a.jsp to a10.jsp contains a link to b.do. This action class(b.do) will generate b.jsp, which has hidden variable called previousUrl. The value of this variable should contain either a.do/a1.do/...a10.do based upon where the user is coming from.
I have tried this approach so far:
1. Created an inline javascript code inside b.jsp
Javascript alert gives me the previous url. But I am not able to populate this value to formbean. When I tried with followinig code, b.jsp generated with empty string instead of the previous url.
I am not sure what I am missing here..? Please advise.
[ March 20, 2008: Message edited by: Nag Bussa ]