Ida Dorum wrote: > The error turned out to be in my mapping, I have never needed to add the > form to my request or session in my action to make it available in my > jsp? Why do you do that?
Neither me (?) Could you send an extract of the JSP file? (kort_finn_kunde.jsp) -- C. Bouessay > -----Original Message----- > From: Arnaud Heritier [mailto:[EMAIL PROTECTED]] > Sent: 10. april 2002 11:53 > To: 'Struts Users Mailing List' > Subject: RE: Cannot retrieve definition for form bean null > > > Don't you miss to transfert your form bean at the end of your action > like > this : > > if(form!=null) > if ("request".equals(mapping.getScope())) > > request.setAttribute(mapping.getAttribute(), form); > else > > request.getSession().setAttribute(mapping.getAttribute(), form); > > > arno# > > >>-----Message d'origine----- >>De: Ida Dorum [SMTP:[EMAIL PROTECTED]] >>Date: mardi 9 avril 2002 16:54 >>A: [EMAIL PROTECTED] >>Objet: Cannot retrieve definition for form bean null >> >>I have a strange feeling I've had this problem before.... >> >>I invoke my action FindCustomerDataAction, wich is supposed to display > > a > form. The action runs ok, and a form bean is made > (CardCustomerSearchForm), > but when i forward to the correct jsp, I get the the error included > below. > >>I include the relevant code from struts-config.xml as well: >> >>Can anyone help me?? >> >>----------- >> >> >>----------- >> >>javax.servlet.jsp.JspException: Cannot retrieve definition for form > > bean > null > >> at > > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795) > >> at > > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) > >> at > > jsp_servlet._customer.__kort_finn_kunde._jspService(__kort_finn_kunde.ja > > va:127) > >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) >> at > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. > > java:265) > >> at > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. > > java:200) > >> at > > weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche > > rImpl.java:241) > >> at > > org.apache.struts.action.ActionServlet.processActionForward(ActionServle > > t.java:1759) > >> at > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) > >> at > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) > >> at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > >> at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > >> at > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. > > java:265) > >> at > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. > > java:200) > >> at > > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl > > etContext.java:2495) > >> at > > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. > > java:2204) > >> at > > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) > >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) >> >>------------------------ >>from struts-config.xml >> >><form-beans> >> <form-bean name="customerSearchForm" >> > > type="sb1.business.salesclient.customer.action.CardCustom > > erSearchForm" /> > >> </form-beans> >> >>-------------------- >><action path="/customer/search" >> > > type="sb1.business.salesclient.customer.action.FindCustomerD > > ataAction" > >> name="customerSearchForm" >> scope="request" >> input="/customer/kort_finn_kunde.jsp" >> validate="true"> >> <forward name="displayform" >> path="/customer/kort_finn_kunde.jsp"> >> </forward> >> <forward name="simplesearchresult" >> path="/customer/show.do"> >> </forward> >> <forward name="advancedsearchresult" >> path="/customer/searchresult.jsp"> >> </forward> >> <forward name="failure" >> path="/customer/kort_finn_kunde.jsp"> >> </forward> >> <forward name="error" >> path="/customer/error.jsp"> >> </forward> >> </action> >> >>.......mogul technology > > as................................................... > >>mogul technology > ida dorum - software engineer >> >>drammensveien 134 >>N - 0277 oslo >>norway >> >>tel +47 - 24 11 43 00 >>dir +47 - 24 11 44 87 >>mobil +47 - 930 60 318 >>mailto:[EMAIL PROTECTED] >>www.mogul.no >> > > ....................................................................... > >> >> >>-- >>To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > >>For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>