When we submit a form or make an AJAX call we need to extract HttpServletRequest object from Portlet ActionRequest object to get the parameter values in action method.
By writing the below lines you can easily extract HttpServletRequest object from Portlet ActionRequest object:
HttpServletRequest httpRequest = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(actionRequest));
Then, you can get parameters from HttpServletRequest as below:
String emailAddressId = httpRequest.getParameter("emailId");
Hope this will help you :)
0 Comment(s)