jsp页面在创建第二个bean对象时报错
<%
ArrayList userlist = (ArrayList)request.getAttribute("questions");
ArrayList zjlist = (ArrayList)request.getAttribute("subzjs");
Question wen = (Question)userlist.get(0);
Subzj sub1 = (Subzj)zjlist.get(0); //此句标记报错
%>
java.lang.ClassCastException: com.psy.bean.Question cannot be cast to com.psy.bean.Subzj
at org.apache.jsp.manager.wenjuanChange_jsp._jspService(wenjuanChange_jsp.java:127)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)