I am having the following problem and would appreciate some help/advice.
1. An HTML form collects information and passes this across, using POST, to a
servlet.
2. The servlet adds the information to a database, sets up a bean and uses the
requestdispatcher to forward the browser to a JSP page that displays the
new information.
No problem so far
3. If the users reloads the page then they are asked if they want to repost
the form data. If they say yes it adds the information to the database
again!
The servlet URL is the 'active' URL after the request dispatcher has been
used.
I could use the request.forward put I want to be able to pass a bean.
Can anybody tell me how to get around this problem ?
Richard Stedham
BAE Systems Tel: 0181-942-9661
Apex Tower, 7 High Street, New Malden Fax: 0181-942-9771
Surrey KT3 4LH E-Mail: [EMAIL PROTECTED]
England
-------------------------------------------------------------------------------
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html