I'm calling struts action from jquery like below code.
jQuery( "#dialog-form" ).dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons : {
"Search" : function() {
jQuery.ajax({
type : 'POST',
url : ' <s:submit action="part" method="find" /> '
})
}
}
});
Is there any way to call struts action from jquery ?
Use
submit tag will not render the url, use url tag instead.