Hi Paul,

I have a similar Problem. From a link I invoke Action1 whichn sendes a Form
to the Browser. With a submit on this form I am invoking Action2.
In the Action2Form I am validating the user input. In the Action2 itself I
invoke a registeruser() methode of a database Object.
When the username in the userfield already exist in the database I want to
tell the user he should try another username. To do this I forward to
Action1 again. what should I do so that the

----- Original Message -----
From: "Paul Devine" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 4:33 AM
Subject: Re: action chaining without resetting action forms


> Joe
>
> I chain actions the way you describe. When you say the action form is
> "reset" before the next action gets to process, do you mean (a)
specifically
> that your ActionForm object's reset() method is invoked and you have
> overridden that method to clear out the form?  Or do you mean (b) the
object
> goes out of scope and a new one gets constructed by the time the second
> action gets to process ?  (or something else you are observing?)   If it's
> (a) then I don't know of any in-built mechanisms to solve this, you may
need
> to write some code to manage that yourself.
>
> - Paul
>
>
> ----- Original Message -----
> From: "Joe Faith" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 05, 2001 11:54 AM
> Subject: action chaining without resetting action forms
>
>
> > Hi,
> >
> > I want to 'chain' actions, by setting the forward of one to be
> > 'my_action.do'
> > The problem is that this resets the action form before calling the next
> > action.
> > Is there anyway to prevent this, or am I chaining actions in the wrong
> > way?
> >
> > thanks
> >
> > --
> > Joe Faith
> > http://www.runtime-collective.com
> > T: (+44) 01273 234294
> > M: (+44) 07968 292064
> >
> >
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to