Struts2 にリストがあり、その変数を定義したいと考えています。私はそれをしました:
<s:set name="userList" value="retrieveUserList(@com.company.project.commons.beans.Profile@YOURSELF.typeId)"/>
たとえば、その要素を取得したい:
<s:property value="retrieveUserList(@com.company.project.commons.beans.Profile@YOURSELF.typeId)[5].name"/>
動作していましたが、設定した後、その変数を使用したいのですが、これは機能しません:
<s:property value="#userList[5].name"/>
それの使い方?