RE: form bean null
Is the name attribute missing in say bean:write tags? Name shud be form bean name. Please check that. Thanks. -Vinay -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 7:28 AM To: Struts Users Mailing List Subject: form bean null what does this error mean? cannot retrieve definiton for form bean null -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.484 / Virus Database: 282 - Release Date: 5/27/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.484 / Virus Database: 282 - Release Date: 5/27/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form bean null
http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=form+bean+nullq=b -= J -Original Message- From: Curley, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 8:32 AM To: '[EMAIL PROTECTED]' Subject: Form bean null Hi, I'm new to Struts. I am trying to use an exsiting jsp file in a new project and received the following error when trying to display it: [ServletException in:/jsps/addAssociate.jsp] Cannot retrieve definition for form bean null' Anyone know where I should look to fix this? General info on what makes this occur? Thanks, John - 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]
RE: Form bean null
http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=Cannot+retrieve+defini tion+for+form+beanq=b -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Curley, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 8:32 AM To: '[EMAIL PROTECTED]' Subject: Form bean null Hi, I'm new to Struts. I am trying to use an exsiting jsp file in a new project and received the following error when trying to display it: [ServletException in:/jsps/addAssociate.jsp] Cannot retrieve definition for form bean null' Anyone know where I should look to fix this? General info on what makes this occur? Thanks, John - 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]
RE: Form bean null
Usually an indication that your setup is incorrect -- no name attribute for a mapping that uses html:form etc. Please take a look at the archives for previous references to the problem for hints. You can search using various tools. Take your pick of : http://marc.theaimsgroup.com/?l=struts-user http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED] http://www.mail-archive.com/struts-user%40jakarta.apache.org/ Sri -Original Message- From: Curley, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:32 AM To: '[EMAIL PROTECTED]' Subject: Form bean null Hi, I'm new to Struts. I am trying to use an exsiting jsp file in a new project and received the following error when trying to display it: [ServletException in:/jsps/addAssociate.jsp] Cannot retrieve definition for form bean null' Anyone know where I should look to fix this? General info on what makes this occur? Thanks, John - 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]
Re: Form bean null
You might also try Google ;-) (You'll be amazed! Try it!) Sri Sankaran wrote: Usually an indication that your setup is incorrect -- no name attribute for a mapping that uses html:form etc. Please take a look at the archives for previous references to the problem for hints. You can search using various tools. Take your pick of : http://marc.theaimsgroup.com/?l=struts-user http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED] http://www.mail-archive.com/struts-user%40jakarta.apache.org/ Sri -Original Message- From: Curley, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:32 AM To: '[EMAIL PROTECTED]' Subject: Form bean null Hi, I'm new to Struts. I am trying to use an exsiting jsp file in a new project and received the following error when trying to display it: [ServletException in:/jsps/addAssociate.jsp] Cannot retrieve definition for form bean null' Anyone know where I should look to fix this? General info on what makes this occur? Thanks, John -- Eddie Bush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form bean - null
you declare an action 'editStream' which you tell to use a form called 'MyForm' but afterwards you call an action called 'details'. Is the 'name=MyForm ' line in the declaration of 'details'action ?? On Thu, 14 Feb 2002 11:36:14 +0200 Konstantina Stamopoulou [EMAIL PROTECTED] wrote: Hello, I need to use a form bean in struts and this is the first time I'm doing that .So as newbie I feel I'm missing something basic. Can U help me? This is my case. I have my struts-config : form-beans form-bean name=MyForm type=provider.test.MyForm/ /form-beans actionpath=/editStream type=provider.test.MyFormAction name=MyForm scope=request validate=false forward name=success path=/streaming.jsp/ /action I have MyForm Bean with set and get methods and I have MyForm Action which just initializes my form: . if (form == null) { System.out.println(Form is null); form = new MyForm(); if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } MyForm strmform = (MyForm) form; and finally my .jsp is the following: html:form action=/details tr font size=5 color=#A0 Destination IP Address : /font html:text property=ip1 size=3 / font color=#A0 . /font html:text property=ip2 size=3 / font color=#A0 . /font html:text property=ip3 size=3 / font color=#A0 . /font html:text property=ip4 size=3 / font color=#A0 . /font /tr tr html:text property=port size=3 / font color=#A0 /tr tr html:text property=lan size=3 / font color=#A0 /tr tr html:text property=autostart size=3 / font color=#A0 /tr /html:form When I callthis page I get a : javax.servlet.ServletException: Cannot retrieve definition for form bean null error, and I cannot fingure out what I 'm doing wrong. I would appriciated if U could provide me with any info regarding this problem. Thank U in advance, Konstantina -- Get your firstname@lastname email at http://Nameplanet.com/?su -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Form bean - null
Hi Konstantina, How do you call your page? If you first call is not like .do, then the action will not be invoked, therefore the form bean is not initialized. Marcel -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:36 AM To: Struts Users Mailing List Subject: Form bean - null Hello, I need to use a form bean in struts and this is the first time I'm doing that .So as newbie I feel I'm missing something basic. Can U help me? This is my case. I have my struts-config : form-beans form-bean name=MyForm type=provider.test.MyForm/ /form-beans actionpath=/editStream type=provider.test.MyFormAction name=MyForm scope=request validate=false forward name=success path=/streaming.jsp/ /action I have MyForm Bean with set and get methods and I have MyForm Action which just initializes my form: . if (form == null) { System.out.println(Form is null); form = new MyForm(); if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } MyForm strmform = (MyForm) form; and finally my .jsp is the following: html:form action=/details tr font size=5 color=#A0 Destination IP Address : /font html:text property=ip1 size=3 / font color=#A0 . /font html:text property=ip2 size=3 / font color=#A0 . /font html:text property=ip3 size=3 / font color=#A0 . /font html:text property=ip4 size=3 / font color=#A0 . /font /tr tr html:text property=port size=3 / font color=#A0 /tr tr html:text property=lan size=3 / font color=#A0 /tr tr html:text property=autostart size=3 / font color=#A0 /tr /html:form When I callthis page I get a : javax.servlet.ServletException: Cannot retrieve definition for form bean null error, and I cannot fingure out what I 'm doing wrong. I would appriciated if U could provide me with any info regarding this problem. Thank U in advance, Konstantina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Form bean - null
Well, Actually my error was that I was associating MyForm with the wrong action. Thank U for pointing that out. Konstantina On Thu, 14 Feb 2002 11:36:14 +0200 Konstantina Stamopoulou [EMAIL PROTECTED] wrote: Hello, I need to use a form bean in struts and this is the first time I'm doing that .So as newbie I feel I'm missing something basic. Can U help me? This is my case. I have my struts-config : form-beans form-bean name=MyForm type=provider.test.MyForm/ /form-beans actionpath=/editStream type=provider.test.MyFormAction name=MyForm scope=request validate=false forward name=success path=/streaming.jsp/ /action I have MyForm Bean with set and get methods and I have MyForm Action which just initializes my form: . if (form == null) { System.out.println(Form is null); form = new MyForm(); if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } MyForm strmform = (MyForm) form; and finally my .jsp is the following: html:form action=/details tr font size=5 color=#A0 Destination IP Address : /font html:text property=ip1 size=3 / font color=#A0 . /font html:text property=ip2 size=3 / font color=#A0 . /font html:text property=ip3 size=3 / font color=#A0 . /font html:text property=ip4 size=3 / font color=#A0 . /font /tr tr html:text property=port size=3 / font color=#A0 /tr tr html:text property=lan size=3 / font color=#A0 /tr tr html:text property=autostart size=3 / font color=#A0 /tr /html:form When I callthis page I get a : javax.servlet.ServletException: Cannot retrieve definition for form bean null error, and I cannot fingure out what I 'm doing wrong. I would appriciated if U could provide me with any info regarding this problem. Thank U in advance, Konstantina -- Get your firstname@lastname email at http://Nameplanet.com/?su -- 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]