You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gareth Meyrick <ga...@kirkstonepass.com> on 2005/07/25 01:40:06 UTC

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):

  <form-beans>
    <form-bean  name="surveyForm"
                type="com.w3elements.form.SurveyForm"/>
  </form-beans>

  <global-forwards>
    <forward  name="survey"             path="/Survey.do"/>
  </global-forwards>

  <action-mappings>
    <action path="/Survey"
            forward="/pages/Survey.jsp"/>
  </action-mappings>

the first time everything works.

the next time tomcat bails with:

<snip>
  ----- Root Cause -----
  javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on
 action /Survey
</snip>

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Cannot retrieve definition for form bean null disaster

Posted by Vincent <vi...@xaymaca.com>.
Shouldn't it be? :

<action   path="/Survey"
 --->    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):
> 
>   <form-beans>
>     <form-bean  name="surveyForm"
>                 type="com.w3elements.form.SurveyForm"/>
>   </form-beans>
> 
>   <global-forwards>
>     <forward  name="survey"             path="/Survey.do"/>
>   </global-forwards>
> 
>   <action-mappings>
>     <action path="/Survey"
>             forward="/pages/Survey.jsp"/>
>   </action-mappings>
> 
> the first time everything works.
> 
> the next time tomcat bails with:
> 
> <snip>
>   ----- Root Cause -----
>   javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on
>  action /Survey
> </snip>
> 
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


-- 
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Cannot retrieve definition for form bean null disaster

Posted by Lucas Bern <lu...@yahoo.com.ar>.
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 <ga...@kirkstonepass.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar