How to read and write properties files in liferay
Liferay developer sometimes need to read and write properties files. 1. For golobal configurations one can put properties valuse on portal.properties You can acheive this by overwrite portal.properties using Liferay Hook. As below: <?xml version="1.0"?> <!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd"> <hook> <portal-properties>portal.properties</portal-properties> </hook> and then write your requird key values in this file. Below sample key values: default.landing.page.path=/web/guest/home company.default.home.url=/web/guest/home To read golobal portal properties file you can use liferay com.liferay...