2 possibilities without using scriplets:
1) Struts-EL:
<html-el:link href="/getorg.do?id=${orglist.id}"/>
2) JSTL:
<c:url value="/getorg.do">
<c:param name="id" value="${orglist.id}"/>
</c:url>
-Tim
-----Original Message-----
From: Ant�nio Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: how to put a <bean:write> in a href=""
Hi all,
Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a <html:link> tag with a string concatenated with a
<bean:write...>?
I mean, I want to do something like this:
<html:link href="getorg.do?id=<bean:write name="orglist"
property="id"/>"><bean:write name="orglist" property="id"/></html:link>
Of course, this doesn't work.
I want href to have the string "getorg.do?id=" concatenated with the output
from <bean:write name="orglist" property="id"/>
I suppose this must be done with a scriptlet. By the way, the "orglist" bean
comes from a logic:iterate over a vector of Beans (named "orglistview").
Anyone?
Thanks,
Antonio Santos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]