Apologies in advance as I've searched through the forum for solutions and while I've come across useful information I still haven't managed to get(or understand at least) a proper implementation of this for my somewhat different situation.
Here is the flow of my web service:
JSP page 1 contains drop down boxes. user selects different values then submits form.
Servlet does some database work depending on what was selected and certain conditions being met forwards to JSP page 2
JSP2 has a form generated depending on values of drop downs in JSP1, user fills out form and submits
Servlet verifies data and sends it off to the database and redirects user to a success page
I would not like the user to simply hit back and then resubmit the form so I've added.
Now they are prompted if they'd like to resend the data and if they click yes the form is simply regenerated depending on the drop down boxes in JSP1 and they are again able to resubmit the form if they'd like.
The thing is, user's are allowed to submit as many forms as they like depending on conditions being met in the drop downs of JSP1 so its not like I want to prevent the user from ever submitting the form again I just don't want them to be able to hit back and resubmit the form for the exact same values. I want it to be required that they come from JSP1 first.
Thanks in advance for any help.