Hi Wendy,

Solved the problem. As usual: stupid problem, stupid answer...

Turns out the checkboxes were outside the form's scope (the </FORM> placed
before the <INPUT>'s).

Thanx 4 everything! (shame on me)
F.

-----Mensaje original-----
De: Wendy Smoak [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 06 de octubre de 2004 1:37
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Asunto: Re: Struts not mapping checkboxes into String[] property


From: "Freddy Villalba A." <[EMAIL PROTECTED]>
>  I've also created a String[]
> property called "elementsId" inside my actionForm class. I've even added
the
> properties for that form inside Struts' xml descriptor.

Are you using a dynamic form, or do you have get/set methods written in the
form bean?  I don't think you need to do both.

> IT DOESN'T WORK. The values are not being mapped to the String[].

If your form property isn't getting populated, then Struts isn't calling the
'set' method.  Usually that happens when the names of the request parameter
& set method don't match, or your form class doesn't conform to the
JavaBeans specification and confuses the introspection/reflection (never can
remember which!) mechanism.

--
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to