• 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

Back button

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This task seems to be easy, but i stuck up for a while.


I need to create a sequence of 3 web pages 2 times: first time for adding, second time for editing. Every page has a BACK button inside the .jsp code.

I did the adding part and most of the code i reused (copy-paste) in editing part. Everything works fine EXCEPT the BACK button in the editing part.
Actually, the editing button BACK goes to the same page where the adding BACK button goes.

How should i go BACK to the appropriate page? Can you post me code for button inside the .jsp that will function same as the browsers back button?


Regards

P.S.
I tried with the javascript history too, without success
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Imre Tokai:
I tried with the javascript history too, without success


That would have been my suggestion. Can you post what you tried and what went wrong? Did you get an error? Did it take you somewhere else? etc
 
Imre Tokai
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pressing it in the edit sequence it takes me back to the previous page BUT in the adding sequence. I used copy-paste for the whole page. I don't know how should I manipulate with history.


Regards


P.S.
How can i pass html code on this forum? I tried to use . It doesn't work
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Imre Tokai:
[QBP.S.
How can i pass html code on this forum? I tried to use . It doesn't work[/QB]


The EscapeHtml wiki page describes how to include HTML.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic