rahul wrote:
Hi all,
Can anyone tell me how to use <bean:write> tag inside <html:href>
I tried it like:
<logic:iterate id="element" name="myBeanList">
<html:link href="/someAction.do?id=<bean:write name='element'
property='id>" >
<bean:write name="element" property="idDescription" />
</html:link>
</logic:iterate>
but its not working, it is generating the following html
<a href="http://localhost:8080/someAction.do?id=<bean:write name='element'
property='id'>">My Desc </a>
what's the correct way of doing this?
--RahulJoshi
__________ NOD32 1.1212 (20050908) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
Hi Rahul
you forgot about /> after property="id"
try this:
<html:link href="/someAction.do?id=<bean:write name='element' property='id' />" ><bean:write
name="element" property="idDescription" /></html:link>
or
<a href="/someAction.do?id=<bean:write name="element" property="id" />"><bean:write name="element"
property="idDescription" /></a>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]