Understand usage of <s:property> tag inside <s:iterator>
Murali Challa <[email protected]> Wed, 19 Feb 2025 14:30:23 +0530
| Newsgroups | gmane.comp.jakarta.struts.devel |
|---|---|
| Message-ID | <CA+cwYWBtb6rAvBXL16tpcJZoQc0-fX4go5+4vNsftiZdd1ooxw@mail.gmail.com> |
Hi, Can someone suggest among below which is best/preferred way of using <s:properly /> tag with in <s:iterator/>. <s:iterator value="#session.userList" var="user"> <s:property value="#user.name" /> //getting value using var.name <s:property value="name" /> // getting value directly using name </s:iterator> Both are working but just wanted to know which is more preferred to use.