Skip to content

Instantly share code, notes, and snippets.

@pikanji
Created January 19, 2013 13:46
Show Gist options
  • Save pikanji/4572763 to your computer and use it in GitHub Desktop.
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.
<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