JavaDoc says: public java.lang.Object getAttribute(java.lang.String name)
... java.util.List l = (java.util.List) getAttribute(...) > -----Original Message----- > From: Sudip Shrestha [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 18, 2004 5:46 PM > To: [EMAIL PROTECTED] > Subject: Sending List as a Request Parameter > > > Using: Tomcat 5.0.28, Struts 1.2.4, jdk 1.5.0, hibernate 2.1.6 > > When I try to pass java.util.List parameter via > javax.servelet.HttpServletRequest from an action method to a > .jsp page, I get exception: incompatible types > found : java.lang.Object > required: java.util.List > List result = request.getAttribute( "employeeList" ); > > Here the List contains a list of plain business objects. > > When using net.sf.hibernate.session.find() method, it only > returns List of objects. Now in order to show the results in > the .jsp page, I must pass the List to the .jsp ....Is there > any other way to tackle this problem? > -- > Thanx, > Sudip > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]