struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roslyakova, Svetlana" <svetlana.roslyak...@bnymellon.com>
Subject RE: Question about upgrade to struts2 2.3.34 and session variables
Date Fri, 29 Sep 2017 15:35:37 GMT
Below didn't work.  We ended up creating new Map variable in Action, updating that variable
in jsp and setting session from that variable in Action.

Thanks,

Lana.

-----Original Message-----
From: Lukasz Lenart [mailto:lukaszlenart@apache.org] 
Sent: Wednesday, September 27, 2017 1:53 AM
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 18:11 GMT+02:00 Roslyakova, Svetlana
<svetlana.roslyakova@bnymellon.com>:
> Here is the full example:
>
> <s:iterator var="UserRow" status="stat" value="session.userList">
>
> <s:set var="index" value="%{#stat.index}" />  <tr>
>
>    <td><div id="commitdiv<s:property value="#index"/>"><s:textfield

> type="text" id="userId" theme="simple"  name="session. userList 
> [%{#stat.index}].UserId" value="%{top.UserId}" /></div></td> </tr>

<s:iterator var="userRow" status="stat" value="session.userList"> <s:set var="index"
value="#stat.index" /> <tr>
    <td>
        <div id='commitdiv-<s:property value="#index"/>'>
            <s:textfield type="text" id="userId-%{#index}"
theme="simple" name="session.userList[#index].userId"
value="#userRow.userId" />
        </div>
    </td>
</tr>
</s:iterator>

This should work and I would suggest these readings:
https://clicktime.symantec.com/a/1/45Kx02MVtBkl36gnA94GWc2WdlkNs1_0re97xi3Gn-s=?d=07yfFFqYPM0WD4Foo01g3osCHMJYB3s-Bam1KYGt1G8OPUfmz2vfYiTUym7PiLP1YARrRlzJV8jUz4jcpOuNEe03YeaeS4yT-l4v5QM-UkCGtu2LFtjvb-xY4uGko_A-WyojufbTj9eapK7r2ZjwgdHnwOsBS2Vz8DQb6Q5_nMBWbB2qslNZbuqS9hJhOYjIYtTBkGycfJ2yufD86NwuhItmYDRE-qSfiYJNB87Wi4pBXd4W_xbvWFh6ita4wIXnIyNdiqh2KB4dLO_-_gmOFgzv8XsQrGX9gVByHlIxQeoOIPxQQcv_nhHILSwCSfZA7Z59feAxeAX6Xm6WhziW4gM03Xw8m8d6IiqOKk7gHG7gbxRM24zG8JUdswMoqSdDPFHQk_HRMuYUgK2LHmAzHNH0aUA07SCetMm9aUfKV8mmNBVja4_N-Z-yg0TnCIJ3Ft0QOCOvJlsmX_JHaLyyi_kOeSPHgu1Y12cWSNHPT1H-w-2qcL69QqBQFuwiIPin&u=http%3A%2F%2Fstruts.apache.org%2Fdocs%2Ftag-syntax.html
https://clicktime.symantec.com/a/1/QxgSgW_ss2BsUeDPAnq1-B62pVIOiyMAOMAQ3ZZSYTg=?d=07yfFFqYPM0WD4Foo01g3osCHMJYB3s-Bam1KYGt1G8OPUfmz2vfYiTUym7PiLP1YARrRlzJV8jUz4jcpOuNEe03YeaeS4yT-l4v5QM-UkCGtu2LFtjvb-xY4uGko_A-WyojufbTj9eapK7r2ZjwgdHnwOsBS2Vz8DQb6Q5_nMBWbB2qslNZbuqS9hJhOYjIYtTBkGycfJ2yufD86NwuhItmYDRE-qSfiYJNB87Wi4pBXd4W_xbvWFh6ita4wIXnIyNdiqh2KB4dLO_-_gmOFgzv8XsQrGX9gVByHlIxQeoOIPxQQcv_nhHILSwCSfZA7Z59feAxeAX6Xm6WhziW4gM03Xw8m8d6IiqOKk7gHG7gbxRM24zG8JUdswMoqSdDPFHQk_HRMuYUgK2LHmAzHNH0aUA07SCetMm9aUfKV8mmNBVja4_N-Z-yg0TnCIJ3Ft0QOCOvJlsmX_JHaLyyi_kOeSPHgu1Y12cWSNHPT1H-w-2qcL69QqBQFuwiIPin&u=http%3A%2F%2Fstruts.apache.org%2Fdocs%2Fiterator.html


Regards
--
Ɓukasz
+ 48 606 323 122 
+ https://clicktime.symantec.com/a/1/erAX0I2x4KuaHzO345eKT-7Ry3HQA6QTF6t
+ jw4PW2Og=?d=07yfFFqYPM0WD4Foo01g3osCHMJYB3s-Bam1KYGt1G8OPUfmz2vfYiTUym
+ 7PiLP1YARrRlzJV8jUz4jcpOuNEe03YeaeS4yT-l4v5QM-UkCGtu2LFtjvb-xY4uGko_A-
+ WyojufbTj9eapK7r2ZjwgdHnwOsBS2Vz8DQb6Q5_nMBWbB2qslNZbuqS9hJhOYjIYtTBkG
+ ycfJ2yufD86NwuhItmYDRE-qSfiYJNB87Wi4pBXd4W_xbvWFh6ita4wIXnIyNdiqh2KB4d
+ LO_-_gmOFgzv8XsQrGX9gVByHlIxQeoOIPxQQcv_nhHILSwCSfZA7Z59feAxeAX6Xm6Whz
+ iW4gM03Xw8m8d6IiqOKk7gHG7gbxRM24zG8JUdswMoqSdDPFHQk_HRMuYUgK2LHmAzHNH0
+ aUA07SCetMm9aUfKV8mmNBVja4_N-Z-yg0TnCIJ3Ft0QOCOvJlsmX_JHaLyyi_kOeSPHgu
+ 1Y12cWSNHPT1H-w-2qcL69QqBQFuwiIPin&u=http%3A%2F%2Fwww.lenart.org.pl%2F

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

The information contained in this e-mail, and any attachment, is confidential and is intended
solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any
attachment, or any information contained therein, by any other person is not authorized. If
you are not the intended recipient please return the e-mail to the sender and delete it from
your computer. Although we attempt to sweep e-mail and attachments for viruses, we do not
guarantee that either are virus-free and accept no liability for any damage sustained as a
result of viruses. 

Please refer to http://disclaimer.bnymellon.com/eu.htm for certain disclosures relating to
European legal entities.
Mime
View raw message