Okay, now try putting all that information together in one place (including the actual definition of the form, although I don't think it would be necessary to include all the fields etc.) so we don't have to dig through three separate emails and see what happens.
If you're getting a class cast exception then I think you're not doing what you think you are doing. > -----Original Message----- > From: Tom Jerry [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 7:43 AM > To: Struts Users Mailing List > Subject: Re: error > > the SubmitRequestForm is of Validator type. And the "form" variable is > of > ActionForm type. when ActionForm is being casted to ValidatorForm > type, it > reports a ClassCastException. I am asking what is the solution to it ? > > On 1/8/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > > > From: Tom Jerry [mailto:[EMAIL PROTECTED] > > > > > > public ActionForward AddRequest(ActionMapping mapping, > > > ActionForm form, > > > HttpServletRequest request, > > > HttpServletResponse response)throws Exception > > > { > > > ................ > > > } > > > > > > Laurie.. hope this is clear to you ? > > > > > > On 1/8/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > > > - what are the arguments to the AddRequest method? > > > > - how is that method called? > > > > - what is the actual type for the 'form' parameter? > > > > - what does your action mapping look like for the action (?) > > > containing > > > > the AddRequest method? > > > > Keep trying. He gave you a list of the information anybody would > need to > > even attempt to resolve your problem... > > > > You're getting a ClassCastException, right? When I get those I look > at > > the class I'm trying to cast and what I'm trying to cast it to. > > Obviously you've made an error in your assumptions about the > class(es) > > of your instance(s). > > > > Dave > > > > > > -------------------------------------------------------------------- > - > > 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]