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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to