Could any body please help me regarding how to call more than one action in a jsp page in struts 2.0 tag.e.g I have one struts 2.0 implemented jsp page in which I have three submit buttons.I want to call three different actions..so could this possible...please help me ASAP.
U can do this using java script and buttons. this is the sample code given below. use 3 buttons for each submit. when each button onclick event call separate javascript with different action. Pls try
you can do this by any of one 1. you can call one action, with differnt method names,like save, delete ,add button. 2. if you need to call different actions, just you can give actions name in your button' action property, can call seperate action for every button, In case you want to pass any parameters, then you can write Javascript method,its up to you
Thanks Chatura for your reply... I will implement according to your code. But I am not getting the dojo stuffs. Could you please let me know whether I need to add a jar file for this. If yes,could you please let me know the corresponding jar file..
Whatever you have mentioned is fine with Struts 1.x. It can be acheived with DispatchAction Class in that case. But in case of struts 2.0 it is totally different. So I want how to implement the same with Struts 2.0. Could you please help regarding this....
Hi Chatura... Could you please do me a favour... I am writing below my code snippet. Could you please write the corresponding code to call the respective actions: