You can't nest one custom tag inside another, so what you've written is invalid.
Also, looking at your code, it looks like you're probably iterating over a list and creating a collection of related checkboxes. If this is the case, you should be using the html:multibox tag, rather than html:checkbox.
Here's what I'd recommend to fix it. Putting something in the body of a html:multibox tag is another way of specifying a value attribute. So, the following should work:
Note that in this case the check property should be of type String.
But I�m wondering, how can I "inyect" a value coming from the Action in a struts tag?
Joined: Feb 15, 2005
Injection of values in Struts tags is done automatically, so you don't have to worry about it. For example, suppose your ActionForm has a property firstName and you have the tag <html:text property="firstName" /> in your JSP. If you want the value of this tag to be "Mario" when the page is displayed, all you have to do is set the firstName property of the ActionForm to "Mario" prior to displaying the page, and the Struts tag will pick up the value automatically.
Joined: Aug 06, 2007
Sorry I was on vacation and I couldn�t reply. I think I�m getting struts... slowly Thanks again