J
John Pedersen
Hi,
I have:
<jsp:useBean id="messageHandler"
type="com.starfriend.messages.MessageHandler" scope="application" />
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:choose>
<c:when test="${messageHandler.hasUnreadMessage(session.userName)}">
<img src="../images/newmail.gif" width="145" height="11">
</c:when>
<c
therwise>
No new Messages.
</c
therwise>
</c:choose>
I think you should be able see what I am trying to do - but
messageHandler.hasUnreadMessage(session.userName)
isn't the right syntax. How can I get the userName, which has
previously been added to the session, and use that as a parameter for
the method hasUnreadMessage()?
I have looked all over for an example of this - can anyone show me the
correct syntax (it must be possible...?)
Thanks in advance,
John Pedersen
I have:
<jsp:useBean id="messageHandler"
type="com.starfriend.messages.MessageHandler" scope="application" />
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:choose>
<c:when test="${messageHandler.hasUnreadMessage(session.userName)}">
<img src="../images/newmail.gif" width="145" height="11">
</c:when>
<c
No new Messages.
</c
</c:choose>
I think you should be able see what I am trying to do - but
messageHandler.hasUnreadMessage(session.userName)
isn't the right syntax. How can I get the userName, which has
previously been added to the session, and use that as a parameter for
the method hasUnreadMessage()?
I have looked all over for an example of this - can anyone show me the
correct syntax (it must be possible...?)
Thanks in advance,
John Pedersen