struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mississippi John Hurt" <johnh...@gmail.com>
Subject Problem with JSTL and Struts <html:link> tag But Not with <a>
Date Thu, 24 Aug 2006 05:18:13 GMT
Why is it that when I do the below with struts <html:link> tag I get an
error "Unterminated &lt;html:link tag" due to using JSTL <c:out>...

<c:choose>
  <c:when test="${var=='dog'}">
      <html:link href="/strutsAction.do?id=<c:out value="${obj.id
}"/>">text</html:link>
  </c:when>
...</c:choose>

but when I use a regular HTML tag, its able to handle the JSTL <c:out> fine?

<c:choose>
  <c:when test="${var=='dog'}">
      <a href="/app/strutsAction.do?id=<c:out value="${obj.id}"/>">text</a>
  </c:when>
...</c:choose>

Any ideas? I very much want to use the Struts tag and JSTL so I dont have to
hardcode the appname in the href.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message