Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Problem with Back and Continue button

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am in process of creating a web application for a survery, I am using Jsp and servlets for this. I have back and cotinue buttons to traverse thru the pages back and forth.

I have implemented this in two ways:

1. To go back I made use of Javascript method history.back() and I could get the previous page data. But when I click on continue the page is reloaded and the data which is already selected is lost.

to overcome this problem

2. I have used Struts framework, with this am able to overcome the issue partially. Eg: Suppose that I have 5 Jsp's, I have submitted the data for first 2 pages and I have moved to 3rd Jsp with out submitting 3rd Jsp, if I go back to change other question answers and I come back to 3rd Jsp. Data which is already selected is lost. Where as if the Page is submitted, the data is selected is available.

I am performing the Data Base operations only at the last page once it is submitted.

Is there any way how can I track make data available even with out submitting data? Thanks in advance for help.

Happy New Year to all Ranchers...
 
Rancher
Posts: 4686
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is addressed in the FAQ. Please check them out.
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your message Pat... Would you mind giving me the exact link?

Thanks again.
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic