Understand usage of <s:property> tag inside <s:iterator>
Murali Challa <[email protected]> Wed, 19 Feb 2025 15:54:56 +0530
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <CA+cwYWB1-0F1fFDV2ZKSNtgvShvrLQ1eiXc1NEU2D7tynevKRw@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.