You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jing Zhou <ji...@netspread.com> on 2003/06/25 05:55:51 UTC

Re: refresh

Have you thought of using the transaction token? Or detecting
the invalid employee id in the action class before the transaction?

Jing
Netspread Carrier
http://www.netspread.com

----- Original Message ----- 
From: "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph>
To: <st...@jakarta.apache.org>
Sent: Wednesday, June 25, 2003 5:18 PM
Subject: refresh


i have a time-in time-out application and i have a timelogForm that captures
the employee id and password. the saving of in and out works fine. after
saving the values to the database (im using ejb by the way) im setting the
employeeid and password in the form to null so when the action returns to
the
same page the employeeid and password textboxes are empty. but the bug is
whenever i refresh the browser, using the refresh button of the browser, the
form is like resubmitting its contents eventhough i have set the employee id
and password to null. so i have now double entries in the database for the
employee's time in. how can i resolve this bug?
-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



---------------------------------------------------------------------
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


Re: refresh

Posted by Affan Qureshi <qu...@etilize.com>.
Just use redirect when sending the page back instead of forward. Would this
help in your case?
Affan

----- Original Message -----
From: "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>; "Jing
Zhou" <ji...@netspread.com>
Sent: Thursday, June 26, 2003 6:11 AM
Subject: Re: refresh


yah i just checked out the struts docs and example and i saw the token
thing...im working on it right now

On Wednesday 25 June 2003 03:55 am, Jing Zhou wrote:
> Have you thought of using the transaction token? Or detecting
> the invalid employee id in the action class before the transaction?
>
> Jing
> Netspread Carrier
> http://www.netspread.com
>
> ----- Original Message -----
> From: "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph>
> To: <st...@jakarta.apache.org>
> Sent: Wednesday, June 25, 2003 5:18 PM
> Subject: refresh
>
>
> i have a time-in time-out application and i have a timelogForm that
> captures the employee id and password. the saving of in and out works
fine.
> after saving the values to the database (im using ejb by the way) im
> setting the employeeid and password in the form to null so when the action
> returns to the
> same page the employeeid and password textboxes are empty. but the bug is
> whenever i refresh the browser, using the refresh button of the browser,
> the form is like resubmitting its contents eventhough i have set the
> employee id and password to null. so i have now double entries in the
> database for the employee's time in. how can i resolve this bug?

--
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



---------------------------------------------------------------------
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


Re: refresh

Posted by "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph>.
yah i just checked out the struts docs and example and i saw the token 
thing...im working on it right now

On Wednesday 25 June 2003 03:55 am, Jing Zhou wrote:
> Have you thought of using the transaction token? Or detecting
> the invalid employee id in the action class before the transaction?
>
> Jing
> Netspread Carrier
> http://www.netspread.com
>
> ----- Original Message -----
> From: "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph>
> To: <st...@jakarta.apache.org>
> Sent: Wednesday, June 25, 2003 5:18 PM
> Subject: refresh
>
>
> i have a time-in time-out application and i have a timelogForm that
> captures the employee id and password. the saving of in and out works fine.
> after saving the values to the database (im using ejb by the way) im
> setting the employeeid and password in the form to null so when the action
> returns to the
> same page the employeeid and password textboxes are empty. but the bug is
> whenever i refresh the browser, using the refresh button of the browser,
> the form is like resubmitting its contents eventhough i have set the
> employee id and password to null. so i have now double entries in the
> database for the employee's time in. how can i resolve this bug?

-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



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