Foros de discusión

How to read the POST parameters in Portlet

thumbnail
chethan bd, modificado hace 11 años.

How to read the POST parameters in Portlet

Junior Member Mensajes: 29 Fecha de incorporación: 27/03/12 Mensajes recientes
Hi,

I have a requirement,
Where i've many portlet placed in Liferay Portal page (test). where the Portal page has a URL e.g. http://192.168.2.16:8080/web/guest/test
& when anyone invokes this URL with some POST parameters. How can i get those POST parameters in any of the portlet in that page.

BR,
Chethan
thumbnail
Pranay R Patadiya, modificado hace 11 años.

RE: How to read the POST parameters in Portlet

Regular Member Mensajes: 177 Fecha de incorporación: 23/02/10 Mensajes recientes
HI,
You can try: ParamUtil.getString(request,"PARAM_NAME");

Thanks,
Pranay
thumbnail
chethan bd, modificado hace 11 años.

RE: How to read the POST parameters in Portlet

Junior Member Mensajes: 29 Fecha de incorporación: 27/03/12 Mensajes recientes
Hi,
This doesn't seems to work.
Any how i got the solution by using.

HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(request));
String param= httpReq.getParameter("paramName");


BR,
Chethan