How to get default page url in liferay? -


i set default page url in portal-ext.properties.

default.landing.page.path=/group/guest/home

then create portlet controller :

public class userportrait extends mvcportlet {   @override public void render(renderrequest renderrequest, renderresponse renderresponse) {  }  @override public void processaction(actionrequest actionrequest, actionresponse actionresponse) throws ioexception, portletexception {      super.processaction(actionrequest, actionresponse); } 

}

now , how landing page url in processaction method.

simply, use com.liferay.portal.kernel.util.propsutil.get(string propertyname) property portal-ext.properties file.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -