struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David M. Karr)
Subject Re: what's the right syntax for logic:iterate
Date Sun, 02 Feb 2003 07:07:40 GMT
>>>>> "Sundar" == Sundar Narasimhan <> writes:

    Sundar> Hi, I have a variable "type" which I'd like to use like so
    Sundar> <logic:iterate id="element" collection="<%= myVector %>">
    Sundar>   <li> <html:link page="/action<%= type %>.do"> <bean:write
name="element" /> </html:link></li>
    Sundar> </logic:iterate>

    Sundar> But no matter what I try I don't seem to be able to get the link to do
    Sundar> the right thing.. Ideas?

Well, one problem is that if you use a scriptlet expression for a custom tag
attribute, the expression scriptlet has to be the entire attribute value, not
just a portion of it.  You'll have to concatenate strings together.

David M. Karr          ; Java/J2EE/XML/Unix/C++   ; SCJP; SCWCD

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message