How to access checkbox values in a jsp ?

HI

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...

[656 byte] By [Hemanth@SAa] at [2007-11-27 4:04:36]
# 1

hi

http://www.ninsky.com/struts/

download this struts-examples.war file and deploy and can understand all of the basic methods with output and source...

try that link ..

These examples are intended to provide easy to understand samples of the most common struts tags and practices, the application demonstrates:

Forms using ActionForms

Forms using DynaActionForms

Populating options

Using the multibox tag for checkboxes

Bean tags

Logic tags

Links

Form validation using validator

Using message resources

Localization

Controlling duplicate form submission using transaction tokens

drvijayy2k2a at 2007-7-12 9:09:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanx for the information
Hemanth@SAa at 2007-7-12 9:09:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...