List result = (List) request.getAttribute("employeeList");
Erik
Sudip Shrestha wrote:
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]