Re: Understand usage of <s:property> tag inside <s:iterator>
Lukasz Lenart <[email protected]> Thu, 20 Feb 2025 10:11:48 +0100
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <CAMopvkP5H671bQ8HEn=tq14DCf586SJD5+kFH9=K_Kx=Y4J=kg@mail.gmail.com> |
I would use just "name" as well but I didn't check which options is faster in accessing ValueStack, yet it shouldn't matter IMHO śr., 19 lut 2025 o 12:35 M Huzaifah <[email protected]> napisał(a): > > Hii, > > I prefered use the second one. Just use "name" > > Regards > > On Wed, Feb 19, 2025, 5:25 PM Murali Challa <[email protected]> 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. > >