我在 Liferay 6 中使用像 feed.jspf 这样的开箱即用 portlet 的 jsp:
String articleId =null;
HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest));
articleId = httpReq.getParameter("articleId");
无论是在自定义 portlet 还是在 .jsp 文件中,它都会给出一个空值,但它应该有一个值。