Wednesday, 18 September 2013

store value fetched from an arraylist into an int variable

store value fetched from an arraylist into an int variable

<%-- JSTL foreach tag example to loop an array in jsp --%>
<c:forEach var="window" items="${listOFSchools}">
<c:out value='${window.school_id }'/>
<%
SchoolDisplayService CDS = new SchoolDisplayService();
List<Schooltable> list = CDS.getSchools(window.school_id );
%>
I want to pass the school_id fetched from the array list "listOFSchools"
to the method getSchools(). How can i do this?

No comments:

Post a Comment