I've done the second approach as well! The alternative is that you could instead of using input type="submit" use input type="button" and some javascript submit to an URL..
Or, just inherit the doCheckSecond method in your actions from some sort of root action. > -----Original Message----- > From: Youngho Cho [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 14, 2004 8:15 AM > To: 'Turbine Developers List' > Subject: Re: ActionEvent Related Question > > > Hello David, > > Thanks for your reply. > But I don't know the relation between Pull Model and ActionEvent usage. > Maybe my previous explaination give some misundestand. > > I would like to understand a simple way which is in single form > and there are some eventSubmit buttons > but the methods are NOT belongs to single action class. > > for example, in case of belowing form > <form method="post" > action="$link.setPage("Wizard1.html").setAction("FirstAction")"> > > <input type="submit" value="eventSubmit_doCheckfirst" > name="click first" /> > </form> > > Simply we can excute FirstAction class doCheckfirst method when > click first button. > > But I would like to put second button into the same form here like > <form method="post" > action="$link.setPage("Wizard1.html").setAction("FirstAction")"> > > <input type="submit" value="eventSubmit_doCheckfirst" > name="click first" /> > <input type="submit" value="eventSubmit_doChecksecond" > name="click second" /> > > </form> > > But unfortunately, the doChecksecond method is in SecondAction > already not FirstAction > So I would like to execute SecondAction doChecksecond method when > click second button clicked. > without any action java class modification. > > Any comments appreciate. > > Thanks. > > Youngho > > ps: the simple way I thought that we can put another > <input type="hidden" name="action" value="SecondAction" /> > and check the right action class name at the DetermineAction > Valve using the input method name. > > > ----- Original Message ----- > From: "David Demner" <[EMAIL PROTECTED]> > To: "'Turbine Developers List'" <[EMAIL PROTECTED]>; > "'Youngho Cho'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 14, 2004 4:36 PM > Subject: RE: ActionEvent Related Question > > > > Hi Youngho, > > > > You will need to use a pull tool to achieve this. Please see > > http://jakarta.apache.org/turbine/turbine/turbine-2.3.1/howto/pullmodel-howt > o.html for more information and don't hesitate to ask any questions. > > Good luck, > > David > > -----Original Message----- > From: Youngho Cho [mailto:[EMAIL PROTECTED] > Sent: Monday December 13, 2004 6:20 PM > To: Turbine Developers List > Subject: ActionEvent Related Question > > > Hello, > > I would like to call a 'foo' action class 'bar' method > within form like > <form> > <action name='baz'> > > </form> > > Is there any simple way to achieve that ? > > Any comment appreciate. > > Thanks. > > Youngho > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]