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.

Reply via email to