Hi
Do one thing, write FormBean class with setter/getter for the ArrayList.
like this
FormBean{
ArrayList aa = new ArrayList();
//setter/getter for the same.
}
and simply set ArrayList values in the Action class.
like this
ActionClass{
execute(.......){
//Get the Data from the DB
ArrayList arrayList = new ArrayList();
for(rs.next())
arrayList.add("...");
//get the form Object and set ArrayList
FormBean fb=(FormBean)form;
fb.setArrayList(arrayList);
return mapping.finForword("success");
}
}
Then u display the ArraList Values in the jsp using iterate tag in logic taglib.
xxxx.jsp
<logic:iterate id="dipaly" name="logical FormBean(st.con.xml)" property="arrayList" type="String or type Of OBj that arrList contains">
<bean:write id="display"/>
</logic:iterate>
you will find good tutorials here
http://www.laliluna.de/struts-nested-iteration-tutorial.html