js的代码如下:
<% OEM_Customer_dao dao =new OEM_Customer_dao();
List<OEM_Customer> list=(List)session.getAttribute("oemlist"); %>
后台中定义list的语句为
session.setAttribute("oemlist", oemlist);
红色部分代码提示警告信息如下:
Multiple annotations found at this line:
- Type safety: The expression of type List needs unchecked conversion to
conform to List<OEM_Customer>
- List is a raw type. References to generic type List<E> should be
parameterized
本人js初学,请问这种情况下如何正确提取这个类型为OEM_Customer的list?
这一list的作用在于:显示当前登录用户的所属客户信息,因而oemlist是后台经过dao返回的查询结果