struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Session A Mwamufiya" <>
Subject Re: getting the value of a s:checkbox
Date Wed, 08 Aug 2007 16:49:21 GMT
The name appears as overwriteFlag, so the name took precedence.  I used the key to get the
label text from a properties file.

Interestingly, the html source code shows the value as true, even if it is not checked when

The action variable should be a String or a boolean?  I tried both, and neither worked.


> Session A Mwamufiya wrote:
>> <s:checkbox key="overwriteCheckbox" name="overwriteFlag"
> Isn't key a shorthand for name, value, and label?  If so, I'm not sure 
> which of name and key will win.  Look in the generated html--is the name 
> attribute of the corresponding input tag overwriteCheckbox or
> overwriteFlag?
> -Dale
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: For additional
> commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message