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: [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]

Reply via email to