You can store the array in either the session object or in the request object- put code something like this in the servlet: To store in the session: HttpSession sess= request.getSession(); sess.putValue("myarray", BBarray); Then to access it from the JSP: BB [] arr= (BB[])session.getValue("myarray"); To store in the request: request.setAttribute("myarray", BBarray); To access it in the JSP: BB [] arr= (BB[])request.getAttribute("myarray");
Bala Krishniah
Ranch Hand
Joined: Dec 14, 2000
Posts: 81
posted
0
Thanks Katie McCann. But the document says that the getAttribute returns the object bound with the specified name . Does that mean only one object or whatever we set using setAttribute. (ie it can be a single object or array of object). Thanks