Originally posted by Naman Goyal.:
I need a struts plugin for eclipse so that i can make a sturts application in eclipse but i am not getting it on net.
Please help me in this.
Originally posted by Patricia Samuel:
if something is not clear then let us know
Originally posted by Brent Sterling:
My suggestion would be that instead of trying to do this in your JSP, move this into your Action (or some other Java code) where you can build up a collection that looks like what you need for your JSP. I am picturing a class named ReportItem (or whatever) that contains two properties: code, and balance. In your Java code you could take the two lists and create a single list of ReportItem objects.
- Brent
Originally posted by Patricia Samuel:
<select name="req_code" size=1>
<%SelCloseReqForm scrobj=null;
ArrayList list=(ArrayList)request.getAttribute("list");
ArrayList list1= (ArrayList) request.getAttribute("list1");
Object f=request.getAttribute("f");
if(list1!=null && list1.size()>0){
Iterator itr1= list1.iterator();
for(Iterator itr=list.iterator();itr.hasNext())
{scrobj=(SelCloseReqForm)itr.next();
scrObj1=(SelCloseReqForm)itr1.next();
%>
<option value="" <%=scrobj.getReq_Code() %> "," "\">
<%=scrobj.getReq_Code() %> Balance : <%=scrObj1.getReq_Code(); </option> <%}}}//end if %>
</select>
Here i am assuming list and list1 will have equal size everytime.
see if it works for you or not