Meaningless Drivel is fun!*
The moose likes JSP and the fly likes BACK link in jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "BACK link in jsp pages" Watch "BACK link in jsp pages" New topic
Author

BACK link in jsp pages

Gabriel Palomino
Greenhorn

Joined: Aug 10, 2007
Posts: 3
Hello

In my jsp pages there is a 'back' link that goes to the previous page, the think is that the previous page is not static, I mean, a single results page can have diferent back links destinations depending from where you come from.
When there are diferent levels of back
where can I store the back url ?

e.g.

home page -> result page 1 -> comment page -> user page -> result page 2 ->
comment page 2

result page are the same jsp but with diferent back urls, same for comment page.

How can I manage this?

I'm trying with beans in session for each jsp but I don't know if it is a good solution.

Thanks

Gabi.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Storing per-user info that needs to be retained across requests is exactly the type of job that the session is for.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: BACK link in jsp pages
 
Similar Threads
Can I have j_security_check in two login.jsp
Back link and sessions
Logout problem
calling function while re postingthe same page..javascript
Living without a controller?