Servlets -- repeated browser requests possible?
Posted on 1999-11-16
Is it possible to have a browser (Navagator, IE, etc.), without any use of applets, carry on a "dialog" with a servlet, or will a new instance of the servlet always be created every time a browser sends a request?
The situation I'm envisioning is an order-entry type situation. The user first enters personal identification and product information into an html form. When the user clicks "submit," a servlet checks the form information to be sure the form was accurately filled out, and (assuming it is), generates a new page asking the user to confirm the information entered. I would like the same servlet to continue processing the information if the user confirms, but whenever I try to have the confirmation submitted to the same servlet, I get an error.
Currently, I have the confirmation page submitted to a second servlet, which then processes the confirmed information. To do this, however, I am using hidden fields in the confirmation page (containing information generated by the first servlet). Some of the information I am hiding should not be accessible to the user, but it is accessible if the user just views the page source.
I want to avoid the use of applets, for a number of reasons. Is there any other way I can have multiple "submits" to the same servlet directly from a browser?
I hope I'm being clear in stating my problem.
Any help/advice would be appreciated.