Chris Pat wrote:

The NPE is happening on the first cast.  Everything
else looks fine.
But WE wouldn't know that 'cuz you keep not giving us info.

 <form-beans>
   <form-bean name="header1" type="min03.forms.header1" />
   <form-bean name="header1Form" type="min03.forms.header1Form" />
 </form-beans>
That seems fine.

 <action-mappings>
   <action input="/header1.jsp" path="/add1Action" scope="session" 
type="min03.actions.add1Action" />
   <action path="/delete1Action" scope="session" 
type="min03.actions.delete1Action" />
   <action input="/header1.jsp" name="header1" path="/header1Action" scope="session" 
type="min03.actions.header1Action">
     <forward name="search" path="/search1Action.do"/>
   </action>
   <action path="/listAll1Action" scope="session" 
type="min03.actions.listAll1Action" />
   <action input="/header1.jsp" path="/search1Action" scope="session" 
type="min03.actions.search1Action">
     <forward name="results" path="/result_list1.jsp"/>
   </action>
 </action-mappings>
Here I start to get suspicious.

Your original code sample you said didn't work was a fragment of search1Action, correct?

You do not have a form bean defined for the /search1Action path, which is the only place search1Action is referenced in the above config fragment.

Have you tried defining the form bean for that action? You have to provide the name of the bean for the action, otherwise how would it know what type of form to put in to scope?

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to