RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
Hi Lukasz, I have another issue with struts2 2.3.34 upgrade. We are using session variables throughout the application: After the upgrade, the session variable is not updated anymore. Any advice? Thanks, Lana. -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org]

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Lukasz Lenart
2017-09-26 17:27 GMT+02:00 Roslyakova, Svetlana : > Hi Lukasz, > > I have another issue with struts2 2.3.34 upgrade. > We are using session variables throughout the application: > > name="session.user.UserId" value="%{top.UserId}" /> What getters/setters do you have for UserId? And why do you use

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
Here is the full example: "> The UserList is the business class and getters/setters for UserId in that class are as follows: public String getUserId() { return UserId; } public void setUserId(String userId) { UserId = userId;

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
On 9/26/2017 7:41 PM, Roslyakova, Svetlana wrote: > Here is the full example: > > > Does your action have getSession() method? As I remember, to access session we should use #session e.g. #session.userList or #session['userList'] > > > > "> type="text" id="userId" theme="

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
On 9/26/2017 9:14 PM, Roslyakova, Svetlana wrote: > Hi Yasser, > > Here is my Session getters/setters: > > public void setSession(Map arg0) { > this.Session = arg0; > } > > public Map getSession() { > return Session; > } > Thank you!

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
Hi Yasser, Unfortunately it didn't work either. Thanks, Lana. -Original Message- From: Yasser Zamani [mailto:yasser.zam...@live.com] Sent: Tuesday, September 26, 2017 1:49 PM To: user@struts.apache.org Subject: Re: Question about upgrade to struts2 2.3.34 and session variables On 9/

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
On 9/26/2017 10:47 PM, Roslyakova, Svetlana wrote: > Hi Yasser, > > Unfortunately it didn't work either. > > Thanks, > > Lana. > I also think all .UserId should be replaced with .userId (lowercase u). Also, please set devMode to true [1] and examine output for any related WARN. [1] https:

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Lukasz Lenart
2017-09-26 18:11 GMT+02:00 Roslyakova, Svetlana : > Here is the full example: > > > > > > >"> type="text" id="userId" theme="simple" name="session. userList > [%{#stat.index}].UserId" value="%{top.UserId}" /> > This should work and I would