Adding and getting init parameters

We will be adding the init parameters in the portal.xml as

        <init-param>
             <name>Height</name>
             <value>200</value>
        </init-param>

String name = getInitParameter("Height"); //200

Enumeration<String> names = getInitparameterNames(); // It gives the all init parameters

In JSP
        portletConfig.getInitParameter("Height");

  

Comments

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate