我可以用这个scriptlet做什么
<%
ResultRow row = (ResultRow) request.getAttribute(BookAndAuthor.SEARCH_CONTAINER_RESULT_ROW);
Book book = (Book) row.getObject();
%>
如果我想在此代码中使用value="${book.BookId}
?
<liferay-ui:icon-menu>
<portlet:actionURL name="deleteBook" var="deleteBookVar">
<portlet:param name="bookId" value="<%=String.valueOf(book.getBookId())%>" />
</portlet:actionURL>
</liferay-ui:icon-menu>
答案 0 :(得分:0)
这有点棘手,但我觉得应该有用。
使用变量来保存常量/usr/include/GLES2/gl2.h:67:25: note: previous declaration as 'typedef khronos_ssize_t GLsizeiptr'
typedef khronos_ssize_t GLsizeiptr;
^
usr/include/qt5/QtGui/qopenglext.h:475:19: error: conflicting declaration 'typedef ptrdiff_t GLintptr'
typedef ptrdiff_t GLintptr;
^
usr/include/GLES2/gl2.h:68:26: note: previous declaration as 'typedef khronos_intptr_t GLintptr'
typedef khronos_intptr_t GLintptr;
^
SEARCH_CONTAINER_RESULT_ROW
要阅读属性,您应该能够使用括号表示来访问动态&#39;特性:
<c:set var="resultRowConstant" value="<%=BookAndAuthor.SEARCH_CONTAINER_RESULT_ROW%>" />
这将保留<c:set var="row" value="${[resultRowConstant]}"/>
对象,而不是通过
ResultRow