I got a linkIf.tag file that's working well. It checks the test and
either creates a link the the url with the body as the link content
(ie < a href="<%=url%>" ><jsp:doBody /></a>) or just shows the body
sans link.

<html:linkIf test="0" url="manager.action">
        <s:property value="online"/>
</html:linkIf >

I want to set the test attribute to be <s:property value="online"/>,
and that's where I run into trouble.
I tried:

<html:linkIf test="<s:property value="online"/>" url="manager.action">
and
<html:linkIf url="DevieManager.action">
        <jsp:param name="test">
                <s:property value="devicesOnline"/>
        </jsp:param>
and a bunch of random other bad ideas.

Can someone suggest a solution?
Other tips on the code presented would also be good to hear.
Thanks!
- Isaac

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to