AliasInterceptor parameter mapping issue

2020-08-27 Thread Brian Lenz
Hello, We are running into an issue with the AliasInterceptor after upgrading to 2.5.22 (from 2.3.35). The issue is that the fallback behavior to look in HttpParameters for a value guarantees a value will always be set and that Evaluated.isDefined() will subsequently always return true. The issue

Re: Struts 1 -> Struts 2 migration session parameters not found

2020-08-27 Thread Lukasz Lenart
czw., 27 sie 2020 o 13:17 Natta Wang napisaƂ(a): > > I start to migrate from Struts 1 to Struts 2 and found a problem that I want > to ask for help with the session. > > In Struts 1 web.xml, I have a Filter class that maps to servlet and when it > be called, it will set a parameter with an objec

Re: Struts 1 -> Struts 2 migration session parameters not found

2020-08-27 Thread M Huzaifah
Hii Natta Wang, Are you try using session interceptor? In java, the session could access using ServletActionContext.getRequest().getSession(); it will return servlet HttpSession and use getAttribute() method to ge your particular session by given sessionAttribut name. To access session in jsp, i

Struts 1 -> Struts 2 migration session parameters not found

2020-08-27 Thread Natta Wang
I start to migrate from Struts 1 to Struts 2 and found a problem that I want to ask for help with the session. In Struts 1 web.xml, I have a Filter class that maps to servlet and when it be called, it will set a parameter with an object. All Struts 1 JSP pages can access the session that has th