I'm using struts2-jquery plugin in my application, i'm using its sj:a component to submit forms.
Here is my code.
<s:iterator value="countryList" var="country">
<s:form id="frm%{countryID}" action="add_country_save">
<s:textfield name="country.countryName" size="40" id="txt%{countryID}"/>
</s:form>
<sj:a id="ah%{countryID}" formIds="frm%{countryID}"
targets="add_country" button="true" > Delete </sj:a>
</s:iterator>
Everything works fine until a requirement came up that I've to display a confirmation dialog before submitting a form .
This is what actually i have tried to implement.
If user click Ok,the form submission will be submitted. If user click cancel,the form submission will be canceled.
If any one had a solution please share with me.
Thank's