I am developing an application using struts2. I was stuck at a point, where I have 2 buttons, in a single struts2 form. I want one of the buttons, not to call the default form action bean, despite call its own Jquery modal dialog based on this button ID. Each time I click the button, its calling the form action bean. How to get rid of this?
Share
I have created a Jquery function for button2 using button id as a reference. This function is called upon clicking that. I have placed the below line of code in the first line of that function.
The above line of code prevents calling the default form action, i.e.., struts2 action bean.