Foros de discusión
get HttpServletReponse from action response
narma s, modificado hace 8 años.
get HttpServletReponse from action response
New Member Mensajes: 17 Fecha de incorporación: 11/09/15 Mensajes recientes
We are using endeca portlet and I want to know how to get HttpServletResponse from liferay portal action response without using PortalUtil.getHttpServletResponse method.
Vilmos Papp, modificado hace 8 años.
RE: get HttpServletReponse from action response
Liferay Master Mensajes: 529 Fecha de incorporación: 21/10/10 Mensajes recientes
PortalUtil.getHttpServletResponse calls this code:
So you can use this, but I would go with PortalUitl anyway.
@Override
public HttpServletResponse getHttpServletResponse(
PortletResponse portletResponse) {
PortletResponseImpl portletResponseImpl =
PortletResponseImpl.getPortletResponseImpl(portletResponse);
return portletResponseImpl.getHttpServletResponse();
}
So you can use this, but I would go with PortalUitl anyway.
Olaf Kock, modificado hace 8 años.
RE: get HttpServletReponse from action response
Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientesnarma s:
We are using endeca portlet and I want to know how to get HttpServletResponse from liferay portal action response without using PortalUtil.getHttpServletResponse method.
Oh, look. Someone had the same problem at the same time you had it. Also, this related question and answer might help you further