Not sure if I understood the question right, but let me try :


No, there isn't 2 "action" attributes in the form. You can have only one action 
attribute per form. So the work around is to dynamically change the action 
attribute with javascript (see the code in the second post). That way, when you 
click on a button, the javascript changes the action and then post the form. 
Each button can direct the same form to different actions. It would be easier 
if the action was an attribute of the submit button and not of the form, but 
that's how HTML is ... No way to change that...



To do things even more cleanly, you could probably write a taglib with a 
customized submit button that would encapsulate the JS generation ... But the 
quick & dirty (tm) hack is easy enough that it seems like a bit too much 
overhead.



Hope it helps ...
--
--

Jabber : [EMAIL PROTECTED] (feel free to contact me)
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2590#2590
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to