> -----Original Message-----
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 10:13 AM
> 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 

When you get the "Cannot find bean ..." error message, it's hard to tell
WHICH bean it can't find.  Do you know that there is a bean named
"foundPersons"?

This is where it's very helpful to execute this in a debugger, with the
Struts source code available.  Once you have that set up, it's easier to
track down things like this.

Do you have valid "taglib" directives for both the Struts tag libraries, and
the JSTL?

These questions don't matter too much, as you're trying to use JSTL EL
references inside normal Struts tags.  That won't work.  However, if you get
the nightly build of Struts, you'll notice a new "contrib" library directory
named "struts-el".  This contains a tag library which is derived from the
Struts tag library, which uses the JSTL EL engine for evaluating attribute
values, instead of using "rtexprvalue"s.  This library was only recently
released (by me), so it's still only in the nightly build, and not even in a
beta release yet.

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

Reply via email to