Thanks!! I've been struggling with this all day :D

Gekka

On Tue, 2002-10-22 at 20:19, Karr, David wrote:
> > -----Original Message-----
> > From: Gekka [mailto:gekka@;bluezone.no]
> > Sent: Tuesday, October 22, 2002 10:57 AM
> > 
> > I'm using Struts 1.1b2 and Tomcat 4.1.12 on Windows 2000 and 
> > I have some
> > problems with the logic iterate tag. What I do is that I set a
> > Collection (HashSet) in the request object inside execute() 
> > in an action
> > and then pass control to a jsp to iterate over the results. 
> > Here's what
> > I do in the jsp:
> > 
> > <logic:iterate id="menuElement" name="items" scope="request"
> > type="bean.HTMLLink">
> >     <html:link href="<bean:write name="menuElement" 
> > property="url"/>">
> >             <bean:write name="menuElement" property="caption"/>
> >     </html:link>
> > </logic:iterate>
> 
> You can't directly reference a custom tag in the attribute value of a custom
> tag.  You normally have to use a scriptlet to reference the value.
> 
> It has to look like this:
> 
> <html:link href="<%=menuElement.getUrl()%>">
> 
> Alternatively, using the Struts-EL package in the nightly build, it would
> be:
> 
> <html-el:link href="${menuElement.url}">
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to