This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have a scenario like this, Page A : Some text boxes and check boxes. Link to Page B. A "Save" and a "Cancel" button.
Page B : Some text boxes and check boxes. A "Save" and a "Cancel" button.
My question is like this, if the user typed in something in the text boxes on Page A, then clicked the link to Page B. In Page B, the user clicked the "Cancel" button which bring him back to Page A. How do I preserve the changes the user made in Page A (Without using the "back" button,of course)?
I too agree with Merrill Higginson the thing u can do is on the click of the button call a java script that submits the page and in the action class save the data that is the form obtained, in the session if u dont want to save the data parmenantly ie (submit of the page) other wise submit the page hence since the form is saved in the session u can populate the page again on coming back to the page again.
Joined: Nov 01, 2005
So please allow me shamelessly to ask for a example snippet.