js如何获得session中定义好的list

Everyday前进一步 2017-08-30 09:33:44
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返回的查询结果
...全文
243 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧