为什么可以在我的 JSP 文件中访问 renderRequest 对象?
它可以在 view.jsp 文件中访问,但在其他 jsp 文件中是不可访问的。
我收到错误 renderRequest cannot be resolved
顺便说一下,我正在使用 Eclipse Liferay IDE。
最佳答案
确保您的 jsp 包含以下 taglib
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects />
关于jsp - 在 liferay portlet 中无法访问 renderRequest,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9996997/