I was going to suggest that something was amiss with your action mapping since the 
error message isn't reporting the name of the bean.  However, I am puzzled by the fact 
that everything else works (when the <html:radio> is commented out).

You could be right about <logic:iterate> not make the id attribute available.  But 
you'd think somebody else would have stumbled on it by now.

All my work with iterations has been with the <nested:iterate> tag.  Following is a 
snippet from my application:

<nested:iterate id="anAddress"
              type="com.sas.mis.qs.struts.bean.SiteAddressBean"
          property="addresses">
  <tr id="<%=anAddress.getSite()%>">
    <td>
      <nested:radio property="../site"
                       value="<%=anAddress.getSite()%>"/>

Thinks works like a charm.  You *could* trying the <nested> tags and see if it fixes 
your problem.  You don't have to have a nested structure in order to use the <nested> 
tags although that's where its strengths lie.

Sri

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


Sri wrote:
> 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).

Okay, now I have:

  <logic:iterate id="resView" name="foundPersons" 
type="edu.asu.vpia.value.ResolutionView">
  <html:radio property="key" value="<%=resView.getKey()%>"/> 
  <bean:write name="resView" property="key" filter="true"/>

Same error.  org.apache.jasper.JasperException: Cannot find bean under name 
org.apache.struts.taglib.html.BEAN
(And it's definitely the <html:radio> tag, because if I comment it out, the page loads 
fine without radio buttons.)

It seems to me that <logic:iterate> isn't putting that resView bean in a place that 
the scriptlet can find it.

-- 
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