Question

J'ai une liste chez Struts2 et je veux définir une variable pour cela. Je l'ai fait:

<s:set name="userList" value="retrieveUserList(@com.company.project.commons.beans.Profile@YOURSELF.typeId)"/> 

Je veux en obtenir les éléments, par exemple:

<s:property value="retrieveUserList(@com.company.project.commons.beans.Profile@YOURSELF.typeId)[5].name"/> 

fonctionnait mais après avoir réglé, je veux utiliser cette variable bu, cela ne fonctionne pas:

<s:property value="#userList[5].name"/>

Comment l'utiliser?

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top