掲示板
How to get the event value in jsp page in liferay 6.1
11年前 に Kiran Kumar Boyini によって更新されました。
How to get the event value in jsp page in liferay 6.1
Expert 投稿: 287 参加年月日: 11/06/02 最新の投稿
Hi All,
I am developing the IPC of type event.It is working fine,I am getting the event value in action class,But I want to get the
event value in jsp page of portlet.
In action class:
Now how to get the "ipcValue" in jsp page of the portlet
Regards,
Kiran.
I am developing the IPC of type event.It is working fine,I am getting the event value in action class,But I want to get the
event value in jsp page of portlet.
In action class:
public class IPCPortlet2Action extends MVCPortlet{
@javax.portlet.ProcessEvent(qname = "{http://liferay.com}ipcValue")
public void handleProcessempinfoEvent(javax.portlet.EventRequest request, javax.portlet.EventResponse response)
throws javax.portlet.PortletException, java.io.IOException {
System.out.println("======handleProcessempinfoEvent()========");
javax.portlet.Event event = request.getEvent();
String value = (String) event.getValue();
System.out.print("value in process event ------>" + value);
response.setRenderParameter("ipcValue", value);
}
}
Now how to get the "ipcValue" in jsp page of the portlet
Regards,
Kiran.
9年前 に Pavan Kumar によって更新されました。
RE: How to get the event value in jsp page in liferay 6.1
New Member 投稿: 3 参加年月日: 13/02/13 最新の投稿
Hi Kiran,
In JSP page use below line to get the RenderParameter value from your handleProcessempinfoEvent(..) method.
String ipcValue = (String) request.getParameter("ipcValue");
Regards,
Pavan
In JSP page use below line to get the RenderParameter value from your handleProcessempinfoEvent(..) method.
String ipcValue = (String) request.getParameter("ipcValue");
Regards,
Pavan