Hello guys,
To Read request parameters in which parameters send with liferay page URL (i.e http://192.168.3.10:8080/group/dentalnotebook/patientprofile?patientId=140701) and to read from velocity template in the liferay 6.2.
Below example help to you for getting parameter values in velocity template :
Request : $request
#set ($current_url = $request.get("attributes").CURRENT_COMPLETE_URL)
Current URL : $current_url
#set ($paramName='patientId')
HttpUtil : $httpUtil
#set ($patientId = $httpUtil.getParameter($current_url, $paramName))
patientId : $patientId
Thank you :)
0 Comment(s)