You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mississippi John Hurt <jo...@gmail.com> on 2006/08/24 07:18:13 UTC
Problem with JSTL and Struts tag But Not with
Why is it that when I do the below with struts <html:link> tag I get an
error "Unterminated <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.