struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <mark.l...@talk21.com>
Subject Re: Refreshing Issue.
Date Fri, 11 Jul 2003 10:27:37 GMT
redirect="true" where you define your forward.

//in your action
return (mapping.findForward("good"));

//Struts-config
<forward name="good" path="/myPage.jsp" redirect="true"/>

HTH mark

On Friday, July 11, 2003, at 11:07 AM, Anurag Garg wrote:

> Hi All,
>
> I am facing a problem in jsp page refreshing. After submitting the 
> page to
> add a new record in the database, I again display the same page with 
> the
> added record in the list. Now If I press F5 (I am not clicking the ADD
> button) it again adds a new record(duplicate record) in the database, 
> which
> it should not do.
>
> I have added the following line in my Action Class
> 	response.setHeader("pragma","no-cache");
>
> I have also added the following statement in the struts-config.xml
> 	<controller nocache="true"/>
>
> But still it is adding the duplicate record in the database when i 
> press F5.
> Any solution how to overcome this problem..
>
> Thanks and Regards,
> Anurag Garg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message