jsp中怎样得到servlet中传过来的数据
我在servlet中拿到页面上的数据后转向啦c.jsp。现在我要在c.jsp中把传过来的数据拿到,并且打印出来在页面上,以下是代码:
<body>
cccccccccccccccc
<%
List userList = (List)req.getAttribute("userList", userList);
out.println("userList");
%>
</body>
但是老是提示错误,req can not be resolved
是不是我这样写不对啊。应该咋写啊。