This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I have a jsp form which has two html:submit buttons 'save' and 'save and add more'. Both submit the form data except that the save button loads another page and save and add more save the data but remains on that very page for more data to be inserted if needed.
I have used saveToken when coming to add page(which has these two buttons) to prevent resubmission of data when going back and clicking on save or when pressing F5.
How do I go about doing the same if one clicks on save and add more button. If i use tokens then i am not able to save data for the second time when clicked on save and add more as the same page loads AND if i don't use token then pressing F5 after saving data for the first time would re submit the form and there would be duplicate data?