You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ujwal Oswal <Uj...@BristolWest.com> on 2003/06/12 22:00:59 UTC

Problem using html:link Tag

Hello,

I need to dynamically set the URL for html:link. Its giving me an exception
for this. Here's what I am trying to do.

      <logic:iterate id="child" name="wm" property="children">
           &nbsp;&nbsp;
           <html:link href="<bean:write name="child" property="url"/>"
styleClass="plain">
	           <bean:write name="child" property="description"/>
           </html:link><BR>
      </logic:iterate>


Has anyone tried  something like that. 

Thanks
Ujwal


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


RE: Problem using html:link Tag

Posted by Chip Paul <ch...@ethreat.com>.
You can however nest a jsp tag inside an HTML one:

<a href="<bean:write ..../>">

It would be a problem if you needed to fix the URL via html:rewrite, but
since you're using href instead of page in your link you're not doing that
anyway.

Doesn't <html:link> support getting the url from a bean anyway?  Might look
into that.

Chip

-----Original Message-----
From: Ujwal Oswal [mailto:Ujwal.Oswal@BristolWest.com]
Sent: Thursday, June 12, 2003 3:01 PM
To: 'struts-user@jakarta.apache.org'
Subject: Problem using html:link Tag


Hello,

I need to dynamically set the URL for html:link. Its giving me an exception
for this. Here's what I am trying to do.

      <logic:iterate id="child" name="wm" property="children">
           &nbsp;&nbsp;
           <html:link href="<bean:write name="child" property="url"/>"
styleClass="plain">
	           <bean:write name="child" property="description"/>
           </html:link><BR>
      </logic:iterate>


Has anyone tried  something like that.

Thanks
Ujwal


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




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