i wrote a
test jsp using a tag file. using the input of "hi" in the jsp, i am getting "Hello world!" and "test hi!" as if when and otherwise both returned true for "hi". Any ideas?
thanks, rk
my test.jsp:
<%@ taglib prefix="mytags" tagdir="/WEB-INF/tags/label" %>
<mytags:test myname="hi" />
my test.tag:
<%@ attribute name="myname" required="true" rtexprvalue="true" %>
<c:choose>
<when test="${myname == 'hi'}">
<b>Hello world!</b>
</c:when>
<c:otherwise>
test ${myname}!
</c:otherwise>
</c:choose>