AJAX on liferay portlets
问题 I am trying to send an AJAX request to a portlet, and it half works. I show you my code and after explain better: The jQuery AJAX: jQuery("#operation").click(function() { var url = '<portlet:resourceURL id="getDataResourceURL"></portlet:resourceURL>'; var operators = jQuery('#result').html(); jQuery.ajax({ url:url, dataType: "json", data:{operators:operators}, success: function(data) { jQuery('#result').html(data.result); } }); And the serveResource @Override public void serveResource