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
Post a Comment