2 actions in one form
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   herwig_posedu
Posted On:   Monday, December 10, 2001 02:15 AM

i need to have in one form 2 or more different actions. is this possible and if, how?


greetings herwig

Re: 2 actions in one form

Posted By:   Ted_Husted  
Posted On:   Monday, December 10, 2001 06:04 PM

Could you state your case in more detail? Do you mean
two Actions run at different times, two Actions chained
together after a single submit, or do you want multiple
submit buttons linked to different Actions.


-Ted

Re: 2 actions in one form

Posted By:   frank_prumbaum  
Posted On:   Monday, December 10, 2001 04:23 AM

Use Javascript. Your form is has a name, so you can change the 'action'-attribute dynamically depending upon your form-data.

(You have to use an input type=button instead of struts' submit, with the onclick attribute set to use your action-switching javascript-function)
About | Sitemap | Contact