0

Preventing Form Resubmission (due refreshing)

To prevent form resubmission due to page refresh we can use HTTP redirect

To use HTTP redirect feature, the forward is set as follows:



However there is one catch in this method, the actual jsp name is shown.

Therefore we can change the forward action as following:

<forward redirect="true" path="/gotoSuccess.do" name="success">

where gotoSuccess.do is another action mapping using forward action as follows:
<action path="/gotoSuccess" validate="false" parameter="/success.jsp" type="org.apache.actions.ForwardAction">

|

0 Comments

Copyright © 2009 So That I Can Remember All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.