I have a User class that has a String username in it.我有一个用户类,它有一个字符串用户名。 I have a list of users that I'm trying to display in a table using我有一个用户列表,我想使用表中显示
<s:iterator value="users" id="list"> <tr> <td><s:property value="#list.username" /></td> <td></td> <td></td> <td></td> </tr> </s:iterator>
The rows are being displayed the right number of times, so it's iterating through my list properly.该行正在显示正确的号码的次数,所以它的迭代通过我的清单正确。 However, I don't know how to access the username property to display it.不过,我不知道如何访问用户名属性来显示它。 Obviously what I have above isn't correct...显然我上面是不正确的... ... Any ideas?任何想法?