<%@ page import="java.util.*" %>
<HTML>
<HEAD>
<TITLE>STUDENTS DETAILS</TITLE>
</HEAD>
<BODY BGCOLOR="66FFFF">
<FORM ACTION="http://localhost:7070/sku/McaFinal" METHOD="POST">
<CENTER>
<FONT SIZE="4" FACE="Verdana" COLOR="DodgerBlue">
MASTER OF COMPUTER APPLICATIONS <P>
FINAL YEAR STUDENTS <P>
<% Object ia[]=((ArrayList)request.getAttribute("a1")).toArray(); %>
<% for (int i=0;i<ia.length;i++) { %>
<% out.println((CourseStudents) ia[i]).getStuname(); %>
<% out.println(ia[i]); %>
<% } %>
</CENTER>
</BODY>
</HTML>
in this code
a1 is an arraylist sent from a
servlet which is objects of a bean
(CourseStudents). when iam writing comment for a red text iam getting the names of objects of bean like this...
CourseStudents@15a6029 CourseStudents@5f6303 CourseStudents@5d9084 CourseStudents@bad8a8. upto now all are right. but how can i get the beans methods like getStuname and getStuno. please help me from this problem.
Thanks in advance.
please reply me