Skip to content

Instantly share code, notes, and snippets.

@devheedoo
Created December 8, 2016 05:37
Show Gist options
  • Save devheedoo/91416ef3177ce7ff22722bc799cdbedc to your computer and use it in GitHub Desktop.
Save devheedoo/91416ef3177ce7ff22722bc799cdbedc to your computer and use it in GitHub Desktop.
codes related with authentication
<!-- Change your id from "myUserId" to "my******" -->
<c:forEach var="i" begin="0" end="${fn:length(id)-1}">
<c:choose>
<c:when test="${i <= 1}">
<c:out var="${id.charAt(i)}" />
</c:when>
<c:otherwise>
<c:out var="*" />
</c:otherwise>
</c:choose>
</c:forEach>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment