js里面怎么通过el表达式获取后台数据
后台我是这样写的String ids = roleService.getResourceByRoleId(id);
request.setAttribute("permissionIds", ids);
前台ids = ${permissionIds};ids = ${requestScope.permissionIds};都取不到js里面不能el表达式取数据吗,应该可以啊
------解决方案--------------------后台HttpSession session=request.getSession();
String ids = roleService.getResourceByRoleId(id);
session.setAttribute("permissionIds", ids);
前台ids = "${permissionIds}";
这样