You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sachin <sa...@patni.com> on 2002/04/05 17:35:08 UTC

CheckBox problem in struts..

Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: CheckBox problem in struts..

Posted by srinivas <sv...@intensit.de>.
reset the check box values in the struts form reset method.


-----Original Message-----
From: Sachin [mailto:sachin.mapara@patni.com]
Sent: Friday, April 05, 2002 6:35 PM
To: struts-dev@jakarta.apache.org
Subject: CheckBox problem in struts..


Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: CheckBox problem in struts..

Posted by srinivas <sv...@intensit.de>.
reset the check box values in the struts form reset method.


-----Original Message-----
From: Sachin [mailto:sachin.mapara@patni.com]
Sent: Friday, April 05, 2002 6:35 PM
To: struts-dev@jakarta.apache.org
Subject: CheckBox problem in struts..


Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: CheckBox problem in struts..

Posted by Alex Paransky <ap...@standardset.com>.
The reset(...) method in your form needs to reset the checkbox to "false",
every time.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-----Original Message-----
From: Sachin [mailto:sachin.mapara@patni.com]
Sent: Friday, April 05, 2002 7:35 AM
To: struts-dev@jakarta.apache.org
Subject: CheckBox problem in struts..


Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: CheckBox problem in struts..

Posted by Alex Paransky <ap...@standardset.com>.
The reset(...) method in your form needs to reset the checkbox to "false",
every time.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-----Original Message-----
From: Sachin [mailto:sachin.mapara@patni.com]
Sent: Friday, April 05, 2002 7:35 AM
To: struts-dev@jakarta.apache.org
Subject: CheckBox problem in struts..


Hi
Could anyone explain about the checkbox problem in struts
if i have a checkbox in a jsp and if i set the value of the bean to yes,
true or on, the checkbox will be checked. But if i try to set the value of
the checkbox in the bean it is not getting set. if i submit data from
checkbox it is not getting reflected when i revisit the page.

Thanks & Regards
Sachin


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>