0 Replies Latest reply: Feb 24, 2008 10:27 PM by 843833 RSS

    Struts DAO invokation, and populating in form bean

    843833
      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.


      Thanks,
      ur friend.