hello to all. .........
                             this is thanooj ...
                                iam doing practice on JSP with servlets.
                           here .... i have ...a problem :

----------------------------------------------------------------------------------------------------
                            EmpBean objOne=new
EmpBean(1,"rama","analyst",50000);
                            EmpBean objTwo=new
EmpBean(2,"rama","designer",40000);
                            EmpBean objThree=new
EmpBean(3,"rama","DBA",30000);
                            ArrayList<EmpBean>  al=new ArrayList<EmpBean>();
                            al.add(objOne);
                            al.add(objTwo);
                            al.add(objThree);
                            HttpSession session = request.getSession(true);
                           session.setAttribute("alObj",al);
                    or
                           request.setAttribute("EObj",al);
                           RequestDispatcher
rd=request.getRequestDispatcher("index.jsp");
                           rd.forward(request, response);

----------------------------------------------------------------------------------------------------
                           here i need to Itarate my ArrayList obj in JSP.
                            i need to display all bean objs in JSP .... by
access the scope variable....
                         iam getting Uncheck cast from object to
ArrayList<BeanObject> exception
                                   will u plz send me the working code for
the above my code in JSP(Accessing/ Iterating al obj and displaying the bean
objs.
                                      thanking u

-- 
Yours  thanooj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to