From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
> On 10/11/06, Ed Griebel <[EMAIL PROTECTED]> wrote:
> > You should not instantiate manually your own formbean nor put it
into
> > the request scope, you must use the formbean passed into your action
> > class via the ActionForm object.
> Ok I think my question isnt clear.
> 
> So basically PrepareAction has a different form bean associated with
it
> than formBeanName. formBeanName is associated with SubmitAction and
not
> PrepareAction. Hence typecasting wont work.

It's not that your question isn't clear, it's that you're doing it
wrong.

Why would PrepareAction have a formbean of a different class if you're
putting it in to scope and expecting it to work in SubmitAction?

If you have two Actions that show the same JSP the 'name' attribute in
the action mapping should point to the same bean, hence the same class. 

Otherwise wouldn't your JSP break (in general)?

Dave


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

Reply via email to