liferay里页面迁移的几种办法

调用portlet的后台方法示例
name里的值必须在后台portlet里个方法叫addProduct

<portlet:actionURL name="addProduct" var="addProductURL"/>
 
在同一个portlet里的页面迁移
必须有个参数叫jspPage,写上要去的页面完整路径,其他参数名字任意,数量任意
<portlet:renderURL var="addSupplierURL">
    <portlet:param name="jspPage" value="/html/resource-comment/add_supplier.jsp"/>
     <portlet:param name="parameterA" value="..."/>
     <portlet:param name="parameterB" value="..."/>
</portlet:renderURL>
 
如果在portlet里直接重定向
	actionResponse.sendRedirect("/index");//只有ActionResponse才能调用这个方法,作用类似于HttpServletResponse的作用
   
    以上就是常见的页面迁移的三种方式

你可能感兴趣的:(liferay)