Hi Chico,

Not sure if it will work but try...

<logic:iterate id="listElement" name="myList">
        <html:radio property="selectedListElement">
                <bean:write name="listElement"/>
        </html:radio>
</logic:iterate>

if this doesn't work a more elegant way to achieve your scriplet code would
be to use a bean:define.

Jon.

-----Original Message-----
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] 
Sent: 06 June 2001 09:09
To: '[EMAIL PROTECTED]'
Subject: a struts tag within another struts tag ...


does anyone know a way of doing something like so, so that it works:

<logic:iterate id="listElement" name="myList">
        <html:radio property="selectedListElement" value="<bean:write
name="listElement"/>"/>
</logic:iterate>

i always get a error saying that listElement has no value in that scope ...

i get around this problem using jsp, like so:

<logic:iterate id="listElement" name="myList">
<% String myListElement = (String)
pageContext.findAttribute("listElement");%>
        <html:radio property="selectedListElement"
value="<%=myListElement%>"/>
</logic:iterate>

But I really don't want to be mixing jsp with struts ...

any ideas?

chico

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England & Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

Reply via email to