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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -