Hi,
I have a form with a simple text box and a text area. The user enters
some information in the 
boxes and presses submit button. The information is inserted into the
database and I show a 
confirmation page to the user.

Now when the user refreshes the page, the information is resubmitted
into the database. How 
do I avoid this?

I am using 

<form-bean name="myForm"
type="org.apache.struts.validator.DynaValidatorForm">
        <form-property name="subject" type="java.lang.String"/>
        <form-property name="summary" type="java.lang.String"/>
</form-bean>

<action path="/myForm"
                forward="/test/report.jsp" />


    <action
        path="/reportForm"
        type="test.ReportAction"
        name="myForm"
        scope="request"
        validate="true"
        input="/test/report.jsp">
        <forward name="success" path="/test/report_thanks.jsp"/>
        </action>


Any idea on how to refresh the page but do not submit the data second
time to the database?

Uma

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to