You *should* be able to do
    
  <html:radio property="key" value="<%=resView.getKey()%>"/>

I am doing it in my application (yes, within an iteration).  I would, in addition, set 
the type attribute for the <logic:iterate> to the fully qualified class name of the 
object in each iteration (resView).

Sri

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 10, 2002 1:13 PM
To: 'Struts Users Mailing List'
Subject: RE: Radio buttons inside an iterate tag?


> Back to the scriptlet or JSTL approach

I'm still trying to get a property from a bean while iterating, and use it as the 
value of a radio button:

<logic:iterate id="resView" name="foundPersons" >
    <bean:write name="resView" property="key" filter="true"/>
    <html:radio  property="key" value="${resView.key}" />   <-- problem here
</logic:iterate>

Okay, what do I need to make ${resView.key} work?  And am I even doing it right?  I'm 
getting "Cannot find bean under name org.apache.struts.taglib.html.BEAN".

This is Tomcat 4.1.12, (just moved to it 20 minutes ago,) but I don't quite understand 
if I should use JSTL or if there's a separate Struts expression language.  I've only 
been half-listening since I was on 3.3.1 and it didn't apply... 

Thanks,

-- 
Wendy Smoak
http://sourceforge.net/projects/unidbtags 


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

Reply via email to