Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

getting the value of a s:checkbox

Session Mwamufiya

2007-08-08

Replies:

Hi,

I have the following checkbox in my jsp:
<s:checkbox key="overwriteCheckbox" name="overwriteFlag" labelposition="left" onclick="if (this.checked) {javascript:return confirm('%{getText('elementOverwriteConfirmation')}')} "/>

In my action, I have defined overwriteFlag as a String variable, and have a getter and a setter for it. Nevertheless, when I submit the form, I always get null when I try to check the value.

Any ideas what I could be doing wrong?

Thanks,
Session


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.