views:

19

answers:

0

i have bulid a portlet in liferay and have used ajax . when i open site without www all thing is correct but when use www the ajax request url is without www and then response is empty . my liferay portal version is 5.1.1 and i use plugins-sdk and use struts2 portlet and Jsr168 . i have noticed that if i want to request for a portlet with windowState that is not normal ، i should before request the portlet with normal state and if a request is with www or without www the second request have be same with the normal request ( normal windowState) .

jQuery.ajax({
    url : '<portlet:actionURL  windowState="exclusive" >
          <portlet:param name="struts.portlet.action" value="/view/view/search"/>   </portlet:actionURL >' ,
    data : <portlet:namespace/>form_data ,
    success : function (result){
            jQuery("#<portlet:namespace/>search_results").html(result);
            }
        });

actionURL not added www to url . can any one help me