G
GuyBrush Treepwood
I'm trying to use the jstl tags in my struts application.
web.xml
__
<taglib>
<taglib-uri>/c-rt</taglib-uri>
<taglib-location>/WEB-INF/tld/c-rt.tld</taglib-location>
</taglib>
Main.jsp
__
<%@ taglib uri="/c-rt" prefix="c" %>
(...)
<logicresent name="accountBean" scope="session">
<c:if test="${sessionScope.accountBean.authenticated != true}">
<html:link page="/service/signonForm.do">Sign On</html:link>|
<html:link page="/service/newAccountForm.do">Register</html:link>
</c:if>
</logicresent>
I'm sure there is an accountBean in the session, and that the
authenticated propery is false, but the links are not displayed. What's
wrong with my code? I just can't see it.
web.xml
__
<taglib>
<taglib-uri>/c-rt</taglib-uri>
<taglib-location>/WEB-INF/tld/c-rt.tld</taglib-location>
</taglib>
Main.jsp
__
<%@ taglib uri="/c-rt" prefix="c" %>
(...)
<logicresent name="accountBean" scope="session">
<c:if test="${sessionScope.accountBean.authenticated != true}">
<html:link page="/service/signonForm.do">Sign On</html:link>|
<html:link page="/service/newAccountForm.do">Register</html:link>
</c:if>
</logicresent>
I'm sure there is an accountBean in the session, and that the
authenticated propery is false, but the links are not displayed. What's
wrong with my code? I just can't see it.