velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Seach <jwse...@yahoo.com>
Subject Re: boolean setters
Date Fri, 13 Jun 2003 10:48:51 GMT
Not sure how Webwork handles form variables, but the way you have it
your form is sending a variable named linux with a value of "Linux". 
Maybe if you changed the value to "true" it would work.

--- "G.L. Grobe" <gary@grobe.net> wrote:
> I've got a setter being called from a velocity template but I can't 
> figure out how to make it set a boolean value. In the *.vm I have the
> 
> following ...
> 
> <input type="checkbox" name="linux" value="Linux"> Linux
> 
> And in my webworks ActionSupport class I've got a setter ...
> 
>     public void setLinux(boolean os) {
>        this.linux = os;
>     }
> 
> It gets called, but I can't make it set the value as checked, true or
> 
> false.
> 
> Any help much appreciated.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> velocity-user-help@jakarta.apache.org
> 


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


Mime
View raw message