liferay jquery ajax跳转页面

1 jsp代码

<portlet:actionURL var="help" name="help">
</portlet:actionURL>

 <script type="text/javascript">

   $(function(){
	   $("#help_href").attr("href","${help}");
	   
   });

   
 </script>
 

2  action 代码

  2.1 类代码

  public class UserAlertMvcPortlet  extends MVCPortlet 


  2.2 类方法代码

	@ProcessAction(name="help")
	public void help( ActionRequest actionRequest,ActionResponse actionResponse){
		System.out.println("help test");
		actionResponse.setRenderParameter("jspPage", "/jsp/help/download_help_PDF.jsp");
	};
	

你可能感兴趣的:(liferay jquery ajax跳转页面)