wood burning stoves 2.0*
The moose likes Struts and the fly likes Problem with Back and Continue button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Back and Continue button" Watch "Problem with Back and Continue button" New topic
Author

Problem with Back and Continue button

Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
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...


SCJP 1.4 & 1.5, SCWCD 1.5. Learn and Let Learn.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

This is addressed in the FAQ. Please check them out.
Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
Thanks for your message Pat... Would you mind giving me the exact link?

Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Back and Continue button
 
Similar Threads
page transition in JSP-logic needed
maintin checkbox stauts during paginatin(dispalytag)
Hi Experts, Big problem
How to save checkbox value while pagination( by displayTag)
maintain checkbox status while doing pagination