Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在类中设置列表类型的属性,并使用以下方法从类中获取属性到 jsp:
首先通过使用设置属性
actionRequest.setAttribute("SEARCH_RESULT",result);
使用以下方法获取对象
request.getAttribute("SEARCH_RESULT");
但是上面的代码总是产生一个null,为什么?
null
使用 renderRequest.getAttribute(--)
请有以下链接了解更多详情
Liferay MVC Portlet 开发