Jim Reynolds wrote:
I am having issues working with the html:radio tag.

First off: I have  simple bean which extends ActionForm. In my
business logic I create DTO objects and stuff them into the actionform
into a arrayList through a setter. The DTO has a getName method in it.

In my view, I am iterating over like so, and all is GOOD. It spills
out what I want:

     <logic:iterate id="sb" name="abcForm" property="daList"
indexId="index" offset='5'>
    <bean:write name="sb" property="name" />
   </logic:iterate>


According to the Struts Cookbook I then do this to get a radio button:

    <logic:iterate id="sb" name="abcForm" property="daList"
indexId="index" offset='5'>
   <html:radio property="name" idName="sb" value="name" />
    <bean:write name="sb" property="name" />
   </logic:iterate>

Whenever I do this with idName it complains that it cannot find the
getter for name, even through I am printing it out above with the
bean:write tag????
And if I just use name, then it prints out the value as a string and
does not interpret it.

I have never been able to get this to work correctly inside a logic:iterate tag?

Anyone .... ever pull this off?

Hmm, I've never used idName. My guess is that the problem is the property attribute, however. With what you have, you're saying that the radio button should be tied to abcForm.name but get its value from sb.name. I'm guessing your form bean doesn't have [gs]etName methods?

Try removing the property attribute, or changing its value to something spurious, and see what difference that makes.

L.


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

Reply via email to