You can configure the site page with above shown string and fetch it using below code :ServiceContextThreadLocal.getServiceContext().getRequest().getParameter("srce")orParamUtil.get(ServiceContextThreadLocal.getServiceContext().getRequest(), "srce", "")You can also fetch this in velocity template :#set ($serviceContext =...

Hello Folks, In order to to achieve the context path(relative path of a liferay portlet) we have been using a method called public String getContextPath(). Ex. we want to include an image , css or js file in a jsp .We write something as following: <script src="<%=request.getContextPath()%>/js/mobileCompatibility.js"></script> <script...