Late to the party, but EL 2.2 allows you to call method calls (more on this here: fooobar.com/questions/139030 / ... ). This means that you can shorten Jigar Joshi's answer with a few characters:
<c:forEach var="i" begin="0" end="${fn:length(str)}" step="1">
<c:out value="${str.charAt(i)}" />
</c:forEach>
I only suggest this because it is a little more obvious what your code does.
source
share