You action class must also be a subclass of VelocityActionEvent. See http://jakarta.apache.org/turbine/turbine-2/howto/action-event-howto.htm l for information on exactly how this works.
> -----Original Message----- > From: Wei He [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 7:29 AM > To: Turbine Users List > Subject: Re: how to specify action-method in href-link > > > The syntax in path info to mimic a submit is > eventSubmit_doSomething, so > the line should read, > > <a > href="$link.setPage("test.vm").setAction("SomeAction").addPath > Info("eventSubmit_doSomethingonanobject","bla").addPathInfo("S > omeData","123")">test</a> > > It worked for me. You can add more addPathInfo() clause > after setPage() > as well. But make sure that > addPathInfo("eventSubmit_doSomething","") > immediately follows the setAction("") clause. > > > Marc Lustig wrote: > > Hi, > > how do I actually set the action method in a href-link? > > $link.setAction("MyActions") only sets the action-class. > > > > I saw something like that in the archive: > > <a > > > href="$link.setPage("test.vm").setAction("SomeAction").addPathInfo("su > > bmitEv > > ent_doSomething","bla").addPathInfo("SomeData","123")">test</a> > > > > Can somebody confirm this is the appropriate solution ? > > > > Greetings, > > Marc > > > > > > -- > > To unsubscribe, e-mail: > <mailto:turbine-user-> [EMAIL PROTECTED]> > > For > additional commands, > e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: > <mailto:turbine-user-> [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]>
