The error message mentions bean "element". Perhaps the problem is somewhere else on the page? Do you try to refer to a bean named "element" anywhere? Sounds like you may be doing an iterate somewhere?
> -----Original Message----- > From: Karl Stenerud [mailto:[EMAIL PROTECTED] > Sent: Monday, March 17, 2003 7:44 PM > To: Struts Users Mailing List > Subject: Losing the page context > > > My struts application keeps losing the page context, so I > can't get anything > that was saved into the request scope. > > My action does this: > > request.setAttribute("contractListForm", outForm); > > > The jsp for the next page does this: > > <jsp:useBean id="contractListForm" scope="request" > class="view.ContractListForm"/> > > > But it keeps throwing this exception: > > org.apache.jasper.JasperException: Cannot find bean element > in scope null > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet > Wrapper.java:248) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > .java:295) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat > ionDispatcher.java:684) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(Appli > cationDispatcher.java:432) > at > org.apache.catalina.core.ApplicationDispatcher.forward(Applica > tionDispatcher.java:356) > at > org.apache.struts.action.ActionServlet.processActionForward(Ac > tionServlet.java:1759) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.j > ava:1596) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > ... > > > > How can I get access to my contractListForm in the jsp page? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]