You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Nathan Bubna <na...@esha.com> on 2003/11/13 17:16:52 UTC
Re: velocityStruts, Multiple buttons in the same page
tkchris@netcourrier.com said:
...
> I have in my velocity template, 3 buttons : "save", "update" and
> "delete". I would like to fire 3 different actions from these butons.
> I dont know which velocity tool to use for this:
> the following does'nt seem to work:
> <a href="$link.setForward("save")"><img src="../../images/save.jpg"
width="132" height="48" border="0"></a>
> <... action="$link.setAction("save")">
...
> How should I set my template in order to submit trigger each
> action (without using javascript?). Is there anything special to
> set in my struts-config?
yes, this has to do with your Action classes and struts-config. as such, this
is really more of a struts-user question, but i can at least point you in the
right direction. i believe what you want to do is accomplished using struts'
DispatchAction classes. i would look into that class (and it's subclasses).
if you still can't figure it out, try searching the struts-user archives and
then try asking on that list.
Nathan Bubna
nathan@esha.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org