![]() |
| ||
| How to load array in JSP getAttribute I am new at and using Struts. I'm not sure how to do the following: I am loading an Arraylist of TitleNames. Each TitleName is related to a List of pictures (MyList). MyList is a class that I created that contains all the fields needed to describe the picture. In my code at the top of my jsp page, I have: ArrayList tNames = (ArrayList) request.getAttribute("TitleNames"); I would like to do something like: for(int i=0;i<tNames.size();i++) But I am not sure how to do: ArrayList tPics = (ArrayList) request.getAttribute("PicNames", tNames.getId()); |
| All times are GMT -4. The time now is 9:09 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC