posted 19 years ago
Hi,
In the web application I am working on, each UI has a Cancel button clicking on which should navigate back to the previous page. I cannot use window.history.back() because it does not work when I refresh same page on some action. Example delete on listing.
So, I thought of holding the navigation path in the form of arraylist to the user session so that I will know the complete path from home page to any page.
I have written a two methods that take request and URL to add/remove URL to/from the session. I want all my Action classes to use these methods. I am not sure where I have to place these methods?.in Servlet/Action/POJO?
If Servlet/Action, how can I get the servlet/action object to access these methods?
If POJO will there be any synchronization problem between users?
Ur suggestion will be a great help to me.
Thank you