Arraylist iteration on jsp!!!

Hi friends, I have called a function which returns arraylist.Now i want to show all the values into the arraylist in a jsp page.How to iterate nad get the values from the arraylist.
[202 byte] By [java@mania] at [2007-11-27 9:23:08]
# 1

hi,

<%

ArrayListal= new ArrayList();

YourBean pb= null;

al = (ArrayList) request.getAttribute ( "al" );

for ( int i = 0; i < al.size(); i++ )

{

pb = (YourBean) al.get(i);

out.println ( pb.getFirstProperty ( ) );

out.println ( pb.getSecondProperty ( ) );

}

pb = null;

al = null;

%>

*) create javabean file for all properties

drvijayy2k2a at 2007-7-12 22:18:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

but i have to take those values from the database which are not specied into the bean.

as i want the login date ,expiry date and the primary key .For primar key i have set it autoincrement which is not specified into the bean.logindate is taken from syatem date using the getdate function(). and the expiry date is dateadd(month,+6,getdate()). in the insert query function. All these column are not specified into the bean.

So how will i get those values into the jsp page through iterating the values.

java@mania at 2007-7-12 22:18:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...