Saturday, July 7, 2012

what is the difference between getInitParameter method of PortletContext and PortletConfig?


PortletContext :

Obtains the context initialization parameters. Context initialization parameters are different from portlet initialization parameters in the sense that they’re available to all portlets in the same portlet application. Context initialization parameters are specified in web.xml using the contextparam
element.


PortletConfig


Reads Initialization parameters of Portlet defined in portlet.xml


No comments:

Post a Comment