[英]liferay issue : display an image from a portlet to another
I 'm learning to write a portlet in liferay portal 6.1 and I use spring mvc portlet, I have an issue when I redirect page 1 to page 2 by using action phase in portlet. 我正在学习在Liferay Portal 6.1中编写Portlet,并且使用spring mvc portlet,当我通过在portlet中使用操作阶段将页面1重定向到页面2时遇到问题。 And I will display some infomation by the id which have been passed when i redirect page 1 to page 2 So are there any ways to display an image from a portlet of page 1 to an other portlet in page 2 ?
我将通过将页面1重定向到页面2时传递的ID来显示一些信息,那么有什么方法可以显示图像从页面1的portlet到页面2的另一个portlet?
Thanks in advance. 提前致谢。
There is no way you can access the information passed from Portlet 1
in Portlet 2
using ActionRequest
or RenderRequest
, whichever possible. 无论如何,都无法使用
ActionRequest
或RenderRequest
访问在Portlet 2
从Portlet 1
传递的信息。
First you need to get the original HttpServletRequest
Object using PortalUtil
class and then get the required parameters using ParamUtil
, if possible. 首先,您需要使用
PortalUtil
类获取原始的HttpServletRequest
对象,然后尽可能使用ParamUtil
获取所需的参数。
The parameters which are passed through page redirection doesn't fall under any PortletRequest
. 通过页面重定向传递的参数不属于任何
PortletRequest
。 Hence, they cannot be accessed directly using Action or Render request Object. 因此,无法使用Action或Render request Object直接访问它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.