Re: Understand usage of <s:property> tag inside <s:iterator>
Greg Huber <[email protected]> Wed, 19 Feb 2025 09:24:28 +0000
| Newsgroups | gmane.comp.jakarta.struts.devel |
|---|---|
| Message-ID | <[email protected]> |
Probably ask the user list for this. But, #user.name as it won't be searching the stack for the property. On 19/02/2025 09:00, Murali Challa wrote: > 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. >