26 April, 2012

Read portal-ext.properties value in VM file


If you want to read  portal-ext.properties file in  VM template, just follow below steps :

portal-ext.properties
your.key1=Your Value
your.key2=value1,value2,value3,value4



VM
#set($ key1 = $propsUtil.get("your.key1") )
#set($ key2 = $propsUtil.get("your.key2") )



Key 1: $ key1
Key 2: $ key2

Enjoy !!!

Rate Me:

0 Discussion: