Hi all,
I have a ArrayList with Strings in request object and trying to populate in
Jsp. Could any one give me sample code for it?. I am trying with Iterator,optionsCollection and option collection..etc but no luck.
I am setting the arrayList into request object as well setting to Form bean though we no need to do both, just for
testing purpose I am doing this.
If I put Arraylist in request object without setting to FormBean how can we populate and If I set it to Form bean then how to populate?.
Note: My ArrayList have just
string names not beans.
My ActionClass code :
newProductsList.add("Test1");
newProductsList.add("Test2");
newProductsList.add("Test3");
startForm.setProducts(newProductsList);
request.setAttribute("products", newProductsList);
Thanks