• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web navigation

 
Ranch Hand
Posts: 180
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

My application is having an problem.It uses the history.go() and history.back() for web application navigation.
As per as my understanding its using the Web browser's cache to keep track of the navigation.I have been asked to remove that and to provide my own implementation as it is not a preferred way.

Can any one please give me a pointer how to give my own implementation for that.
I will use the url and have to do something in my java class.


Saurav
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will have fun with thi since if the user uses the back and forwad buttons in the browser that are not related to your back and forward buttons, it will probably screw up everything. Reason, back button on the browser does not hit the server.

Not sure what to say other than you need to store the page in some sort of array/object/etc on the server. Have form butons that post back to get the page or write them out on the cllient and change the window.location.href with a button click.

Have fun reinventing the wheel!

Eric
 
saurav sarkar
Ranch Hand
Posts: 180
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Eric for the reply.

My application is using Struts.So,what i am planning is to use is a call
to action class on the click of back button every time.

My logic will be to have two urls........previuos url and current url.
In my execute class i will set the current url as the previous url and send back the response to the previous url.

For that i have to send the previous url everytime to the action class as a request parameter.Please let me know if this is the correct apporach?.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic