How to access checkbox values in a jsp ???
843838May 11 2007 — edited May 14 2007HI
i 've got a checkbox in my jsp . if i check a box then i need to access the value ( i mean value assigned to that checkbox) using my form bean. The real problem is that , value im assigning is a dynamic value.
My code looks like this:
<html:checkbox property ="users " value="< bean:write name="uservo" property="username"/>" />
Im using string[ ] for this checkbox in my form.
now in my action class method when im trying to access the value of checked boxes its not at all creating an instance of that and is returning a null pointer.
Pls get back to me on this .....
Thanks in advance...