I am kind of new to JSP. I have got some PHP experience.
I am trying to find a way to store the arraylist data retrieved from a java class file to an array in jsp.
JSP code:
<c:forEach items="${mybean.status}" var="element">
<c:out value="${element}" />
</c:forEach>
Can I store the output retrieved from class file to an array in jsp?
I am looking for something like below. Can this be done with jstl?
String []s = new String[count];
for(int i=0;i<=count;i++) {
s[i] = element ;
}
Thanks in advance.