P
P.Hill
I am having trouble getting certain tags to work.
My struts action places various things in the sessions
(bibliosTotal, biblio1, biblios) The following bare EL work fine.
The scriplet works fine and prints an expected value out.
But the use of the logic:notPresent tag results in the value
not being identified as present, so it also prints a message
despite being in direct conflict with the previous bit of code.
Any suggestions?
Am I not supposed to be trying to mix and match struts tags with
'modern' jstl?
Total Biblios: ${bibliosTotal} </br>
1st bibliography: ${biblio1} </br>
<p>
<%
out.println( ((List)(session.getAttribute( "biblios" ))).size());
%>
</p>
<p>
<logic:notPresent name="${biblios}" scope="session">
There are NO biblios (Using logic:notPresent).</br>
</logic:notPresent>
The top of the file contains:
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
My web.xml contains:
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
jstl.jar, standards.jar and struts.jar (plus many others) are in my
WEB-INF/lib directory.
My struts action places various things in the sessions
(bibliosTotal, biblio1, biblios) The following bare EL work fine.
The scriplet works fine and prints an expected value out.
But the use of the logic:notPresent tag results in the value
not being identified as present, so it also prints a message
despite being in direct conflict with the previous bit of code.
Any suggestions?
Am I not supposed to be trying to mix and match struts tags with
'modern' jstl?
Total Biblios: ${bibliosTotal} </br>
1st bibliography: ${biblio1} </br>
<p>
<%
out.println( ((List)(session.getAttribute( "biblios" ))).size());
%>
</p>
<p>
<logic:notPresent name="${biblios}" scope="session">
There are NO biblios (Using logic:notPresent).</br>
</logic:notPresent>
The top of the file contains:
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
My web.xml contains:
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
jstl.jar, standards.jar and struts.jar (plus many others) are in my
WEB-INF/lib directory.