Created
January 19, 2013 13:46
-
-
Save pikanji/4572763 to your computer and use it in GitHub Desktop.
Sample JSP script to display user name if the variable is not empty.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<c:if test="${not empty userName}"> | |
<p>Logged in as: ${userName}</p> | |
</c:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment