Skip to main content

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

The old company comeup with new brand MAXBEN - Logo meaning

I am so happy to design this logo for my friend Suresh Mahalingam to boost his paint business to the next level. The first step in his process is logo design. He had a clear idea about his business, processes, pricing and target audience. I just collect all those information from him and created the logo with some appropriate meanings. Check out the logo here