Does anyone know if the book out from Manning on JSTL has anything on EL?

At 01:53 PM 10/10/2002 -0500, you wrote:
> > -----Original Message-----
> > From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 10, 2002 11:03 AM
> > To: 'Tag Libraries Users List'
> > Subject: Help with EL
> >
> > I'm completely confused about whether or not I need JSTL with
> > Struts.  All
> > I'm trying to do is iterate through a collection and present
> > radio buttons,
> > the value of which comes from a property of the things in the
> > collection:
> >
> > <logic:iterate id="resView" name="foundPersons" >
> >         <html:radio name="resView" property="key"
> > value="${resView.key}" />
> >         <bean:write name="resView" property="key" filter="true"/>
> > </logic:iterate>
>
>I think you may have already figured this out, but you can't directly
>reference JSTL EL expressions in attribute values unless the code for the
>tag library expects that.  The Struts tag library is not built to understand
>those.
>
>However, if you use Struts along with the "Struts-EL" contributed library
>(which is in the Struts nightly build, not yet in a release), then you could
>instead do this (along with proper taglib directives):
>
><logic:iterate id="resView" name="foundPersons" >
>   <html-el:radio name="resView" property="key"
>                  value="${resView.key}" />
>   <bean:write name="resView" property="key" filter="true"/>
></logic:iterate>
>
>--
>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]>

Reply via email to