<%@ page import="java.util.*" %>
<HTML>
<HEAD>
<TITLE>STUDENTS DETAILS</TITLE>
</HEAD>
<BODY BGCOLOR="66FFFF">
<CENTER>
<FONT SIZE="4" FACE="Verdana" COLOR="DodgerBlue">
MASTER OF COMPUTER APPLICATIONS <P>FINAL YEAR STUDENTS <P>
<% Object a2[]=((ArrayList)request.getAttribute("a1")).toArray(); %>
<TABLE BORDER="1" BGCOLOR="LightSalmon">
<% for (int i=0;i<a2.length;i++) { %>
<tr><td><% out.print((CourseStudents)(a2[i]).getStuname()); %>
</td><td><% out.print((CourseStudents)(a2[i]).getStuno()); %></td></tr>
<% } %>
</table>
</CENTER>
</BODY>
</HTML>
hi everybody
in my program CourseStudents is name of bean. in my
servlet program i added these bean objects into an arraylist and send it to
this
jsp. please help me how to retrieve the objects of a bean from arraylist and how to show the results in jsp.
hanks in advance