Hi Nope, tried that already. Does not work, but you can go:
<html:radio property="selectedOption" value="<%= testOptions.getData().toString() %>"></html:radio> It would be really nice if what you suggested works, but unfortunately 'value; is a required attribute. Keith -----Original Message----- From: liudsm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 March 2002 3:24 p.m. To: Struts Users Mailing List Subject: Re: html:radio hi ,you can use as this : <html:radio property="selectedOption" ><bean:write name="testOptions" property="data"/></html:radio> ----- Original Message ----- From: "Keith Chew" <[EMAIL PROTECTED]> Newsgroups: Struts Sent: Tuesday, March 19, 2002 7:06 AM Subject: html:radio > Hi > > I have prepared an object called PreparedData and put that in the request > scope: request.setAttribute("preparedData", preparedData); > > Then in the JSP, I want to display that preparedData to a set of radio > button values: > > <html:form action="/saveTest"> > <logic:iterate id="testOptions" name="preparedData" > property="testOptions"> > <html:radio property="selectedOption" value="<bean:write > name="testOptions" property="data"/>"/> > </logic:iterate> > </html:form> > > But of course, I cannot have a taglib within a taglib, as shown above. How > else can I do this? I basically need to access data using the bean:write and > insert that into another taglib. I think I can use: > > <html:form action="/saveTest"> > <logic:iterate id="testOptions" name="preparedData" > property="testOptions"> > <html:radio property="selectedOption" value="<% > ((PreparedData)request.getAttribute("preparedData")).getData() %>"/> > </logic:iterate> > </html:form> > > But I am trying to see if I can do it with struts taglibs. > > Keith > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>