0 Replies Latest reply on Feb 25, 2008 4:27 AM by 843833

    Struts DAO invokation, and populating in form bean

      Hi friends,

      I am following struts framework in my project, where I am using DAO and retrieving the array list

                HttpSession session = aRequest.getSession();
                ArrayList box = new ArrayList();
                String scenId = (String) session.getAttribute(Names.ScenId);
                ProductSelectionDAO dao = new ProductSelectionDAO(scenId);
           ArrayList box = dao.getProducts();
                bean = new ActionForm(box[0]);
                aRequest.setAttribute(Names.LeftCol, bean);
                bean = new ActionForm(box[1]);
                aRequest.setAttribute(Names.RightCol, bean);

      Please let me how I have to iterate the colums values in jsp, and how far the above code works.

      ur friend.