Menu

Get the Query String from Page Configuration 'Advanced' option.

You can configure the site page with above shown string and fetch it using
below code :

ServiceContextThreadLocal.getServiceContext().getRequest().getParameter("srce")

or

ParamUtil.get(ServiceContextThreadLocal.getServiceContext().getRequest(),
"srce", "")

You can also fetch this in velocity template :

#set ($serviceContext =
$portal.getClass().forName("com.liferay.portal.service.ServiceContextThreadLocal").getServiceContext())

#set ($httpServletRequest = $serviceContext.getRequest())

#set($seminarId =$paramUtil.getLong($httpServletRequest, 'srce'))

link

Posted by SourceForge Robot 2021-05-26

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.