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

2020-09-02 Thread Natta Wang
Thanks to you guys. Now I succeed implement session parameters that I expected to appear in Struts2 action by implement with SessionAware. On 2020/08/27 18:31:20, Lukasz Lenart wrote: > czw., 27 sie 2020 o 13:17 Natta Wang napisał(a): > > > > I start to migrate from Struts 1 to Struts 2 and fo

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