将会话变量数组列表添加到显示标记中

时间:2011-09-29 09:10:26

标签: jsp displaytag

1 个答案:

答案 0 :(得分:3)

JSP标记不使用scriptlet变量。他们使用JSP EL表达式。 scriptlet是过去的东西,不应该在JSP中使用。

只需使用

<display:table name="${organisationArray}" ...>

或者,如果你想更明确:

<display:table name="${sessionScope.organisationArray}" ...>