struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sundar Narasimhan <>
Subject ok.. but how?
Date Sun, 02 Feb 2003 18:09:00 GMT
David -- Apologies.. but I'm a newbie to struts, and can't understand
your statement. Can you perhaps show me what you mean by concatenate
strings together? In short, are you saying struts cannot do somehting
like this?
ps. I have tried different syntaxes such as:
     <li> <html:link page=<%= "/action" + type %> ...
etc. but none of them seem to work. 

>>>>> "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">
    Sundar> <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
    Sundar> 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.


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

View raw message