[SOLVED] Re: Cannot retrieve definition for form bean null disaster
hi, thanks for the responses.. the subject line did look like a FAQ question, hence there were few replies (thanks Lucas and Vincent). as per the FAQ, i added a null form bean for the action question.. although it still didn't work:( i was confused because the web application worked the first time.. but never again. the problem was caused by a misbehaving JAAS servlet filter (arguably OT for this list, but i'll probably post a URL for the fixed incarnation since the "login" question comes up so often). programming late at night and then making lame posts for help is not a practice i'd advocate.. unfortunately i broke my own rules.. sorry for any noise. cheers -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot retrieve definition for form bean null disaster
Shouldn't it be? : name="surveyForm" <--- forward="/pages/Survey.jsp"/> Gareth Meyrick wrote: > hi, > > i'm at a loss.. i've verified the usual suspects, checked the usual places, > but still can't find an answer. > > background: > > /Login -> /LoginSubmit -> /Survey -> /SurveySubmit > > from struts-config.xml (IMHO unrelelated stuff elided): > > > type="com.w3elements.form.SurveyForm"/> > > > > > > > > forward="/pages/Survey.jsp"/> > > > the first time everything works. > > the next time tomcat bails with: > > > - Root Cause - > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean > null on > action /Survey > > > and won't work again unless you restart tomcat. > > well.. it's just a forward hiding a JSP. Survey.jsp contains a form > that forwards to /SurveySubmit (which _is_ associated with a form bean.. > yup.. also works the first time). > > software: > tomcat 5.0.19 > struts 1.2.6 > > i'm probably doing something incredibly stupid.. > > any comments or suggestions appreciated. > > TIA -gm > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- The most beautiful thing we can experience is the mysterious. It is the source of all true art and science. - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot retrieve definition for form bean null disaster
I think the problem is the input attribute Try without this attribute.(you do not need it since validate=false) Think of the input attribute like the path of the action where to go when the validate method return errors. It is not the name of a forward, it is the request URI path like "/Survey.do" or "/pages/Survey.jsp" not "survey". Nevertheless, I do not understand the exception, I think it should be thrown form the html:form tag, when teh attribute "action" is wrong, but, in this case it should never work...as you say that the first time it works, we can think that the jsp is not the problem, so when the submit is performed the app crashes... and if you start form the begning it crashes again... -is it ok? wish it helps, make me know what happens Gareth Meyrick <[EMAIL PROTECTED]> escribió: hi, Lucas Bern wrote: > > Hi, I think the problem should be arround the SurveySubmit action... > Coul you paste that definition form struts-config??? type="com.w3elements.action.SurveyAction" name="surveyForm" input="survey" validate="false" parameter="dispatch"> > What is failing??, the load of the form, or the submit??? tomcat barfs about not finding a form bean for /Survey. note: and that survey is /SurveySubmit input source. it's a simple form display/submission pattern that i've used in a number of web applications (that has always worked). even wierder, it always works the _first_ time the app is depolyed.. after that, it's hosed. hosed in the sense that reoloading the original URI (that worked the first time) barfs. worse yet, the web.xml error-page directive is ignored and the exceptions are displayed on the browser. any ideas or thoughts greatly appreciated. cheers -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: Cannot retrieve definition for form bean null disaster
hi, Lucas Bern wrote: > > Hi, I think the problem should be arround the SurveySubmit action... > Coul you paste that definition form struts-config??? > What is failing??, the load of the form, or the submit??? tomcat barfs about not finding a form bean for /Survey. note: and that survey is /SurveySubmit input source. it's a simple form display/submission pattern that i've used in a number of web applications (that has always worked). even wierder, it always works the _first_ time the app is depolyed.. after that, it's hosed. hosed in the sense that reoloading the original URI (that worked the first time) barfs. worse yet, the web.xml error-page directive is ignored and the exceptions are displayed on the browser. any ideas or thoughts greatly appreciated. cheers -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot retrieve definition for form bean null disaster
Hi, I think the problem should be arround the SurveySubmit action... Coul you paste that definition form struts-config??? What is failing??, the load of the form, or the submit??? waiting Lucas Gareth Meyrick <[EMAIL PROTECTED]> escribió: hi, i'm at a loss.. i've verified the usual suspects, checked the usual places, but still can't find an answer. background: /Login -> /LoginSubmit -> /Survey -> /SurveySubmit from struts-config.xml (IMHO unrelelated stuff elided): type="com.w3elements.form.SurveyForm"/> forward="/pages/Survey.jsp"/> the first time everything works. the next time tomcat bails with: - Root Cause - javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on action /Survey and won't work again unless you restart tomcat. well.. it's just a forward hiding a JSP. Survey.jsp contains a form that forwards to /SurveySubmit (which _is_ associated with a form bean.. yup.. also works the first time). software: tomcat 5.0.19 struts 1.2.6 i'm probably doing something incredibly stupid.. any comments or suggestions appreciated. TIA -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Cannot retrieve definition for form bean null disaster
hi, i'm at a loss.. i've verified the usual suspects, checked the usual places, but still can't find an answer. background: /Login -> /LoginSubmit -> /Survey -> /SurveySubmit from struts-config.xml (IMHO unrelelated stuff elided): the first time everything works. the next time tomcat bails with: - Root Cause - javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on action /Survey and won't work again unless you restart tomcat. well.. it's just a forward hiding a JSP. Survey.jsp contains a form that forwards to /SurveySubmit (which _is_ associated with a form bean.. yup.. also works the first time). software: tomcat 5.0.19 struts 1.2.6 i'm probably doing something incredibly stupid.. any comments or suggestions appreciated. TIA -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]