Guest User

Untitled

a guest
Aug 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Some dynamic flexibility in JSP If Else and Sessions
  2. <c:choose>
  3. <c:when test="${request.getAttribute('currSubTopic')!=null}">
  4. (<c:out value="${request.getAttribute('pLCurrent')}"/>, <c:out value="${request.getAttribute('pFCurrent')}"/> )
  5. </c:when>
  6. <c:when test="${null!=session.getAttribute('pFCurrent')}">
  7. (<c:out value="${session.getAttribute('pLCurrent')}"/>, <c:out value="${session.getAttribute('pFCurrent')}"/> )
  8. </c:when>
  9. </c:choose>
Add Comment
Please, Sign In to add comment