struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: <html:link> & dynamic URI
Date Wed, 25 Feb 2004 13:47:05 GMT
Someone else was struggling with this problem this week - they ended up
using the <logic:equal/notEqual> tags, but they only required two options.

If you want the conditional logic in your jsp then put it in either ...
1) Scriptlet
2) Struts logic tags
3) JSTL
4) Your own custom tag (maybe extending the <html:link> tag)

Niall
----- Original Message ----- 
From: "Jakarta" <jakarta@pandorus.com>
To: <struts-user@jakarta.apache.org>
Sent: Wednesday, February 25, 2004 1:32 PM
Subject: <html:link> & dynamic URI


> Greetings,
>
> What I'd like to do is to dynamically write the URI of the Forward
> attribute of the HTML:Link tag from a bean as follows:
>
> <logic:iterate id="refVO" name="listRef" type="abc.ref.RefVO">
>    <tr>
>       <td class="darkGreyDescription">
>          <br><html:link forward="<bean:write name="refVO"
> property="link"/>" paramId="id"
>          paramName="refVO" paramProperty= "tableID" styleClass="anchor">
>          <bean:write name="refVO"
> property="businessName"/></html:link>:&nbsp;
>          <bean:write name="refVO" property="description"/>
>       </td>
>       <td></td>
>    </tr>
> </logic:iterate>
>
> I get an Attribute refVO has no value error.
>
> The idea is to have a JSP page with more than one possible link
> depending on the data.
> I have searched the mail archives without any success. :-(
> Any help would be appreciated!
>
> TIA,
> Glenn
>



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


Mime
View raw message