Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to read request parameters from velocity template in liferay

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 3.31k
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: