tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric.Le...@swissinfo.ch
Subject Quoting problem
Date Tue, 06 Aug 2002 13:36:04 GMT
Hi

This is probably trivial, but nonetheles... :-)

I'm trying only to write a link's target if it actually exists or is
different than "_self". This is my code:

<%-- Save the link target window if necessary --%>
<c:choose>
  <c:when test="${(link.target == null) || (link.target == '') ||
(link.target == '_self')}">
    <c:set var="target" value=""/>
  </c:when>
  <c:otherwise>
    <c:set var="target" value=' target="${link.target}"'/>
  </c:otherwise>
</c:choose>

Unfortunately, in my link below which reads
<a href="<c:out value="${link.url}"/>"<c:out value="${target}"/>>

I get the following result when the page is created:
<a href="http://mp3.swissinfo.org" target=&#034;_blank&#034;>

How can this be escaped when I don't use escapeXml?

Best regards,
Eric


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message