How about a "choose" like this: <c:url var="url" value="/showDay.jsp?" > <c:choose> <c:when test="${myDay eq 'Tuesday'}"> <c:param name="id" value="tuesday"/> </c:when> <c:otherwise> <c:param name="id" value="wednesday"/> </c:otherwise> </c:choose> </c:url>
<a href="<c:out value='${url}'/>">Show Me The Day</a> --- "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote: > > From: Joe Germuska [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 4, 2005 11:14 AM > > > Solve like this: > > <c:if test="..."><c:set var="url">case > 1</c:set></c:if> > > <c:if test="not ..."><c:set var="url" >case > 2</c:set></c:if> > > <html-el:link page="${url}">...</html-el:link> > > Hmmm...my problem is that in some cases I want the > link to exist, in other > cases I want it to disappear. This seems to always > put the link there, but > switch the URL. I think I have to do something like > what Jeff Beal > suggested. That means duplicating some text, but I > don't see a way around > it. > > Thanks for the confirmation of my suspicions, and > for the opinions. > > -- > Tim Slattery > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]