How to create an array and display it using Expression Language in JSP?

<dsp:page>
<c:set var="alphabet" value="${fn:split('A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z', ',')}" scope="application" />
<c:forEach var="fruit" items="${alphabet}">
<c:out value="${fruit}" />
</c:forEach>
</dsp:page>


Output:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Popular posts from this blog

[Solved] Hive installation error: java.net.URISyntaxException: Relative path in absolute URI

Install Android SDK in centOs

Installing arules package (Association Rules) in R