Re: Facings issues while migrating from Struts 2.5.x to 6.7
Lukasz Lenart <[email protected]> Wed, 22 Jan 2025 10:12:01 +0100
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <CAMopvkMBSveFCd=M_P51tPzw60NE0av-8Me7pwygUUamyJA5mw@mail.gmail.com> |
śr., 22 sty 2025 o 09:55 Murali Challa <[email protected]> napisał(a): > > Hi, > > We are migrating our application from struts2-core 2.5.33 to 6.7.0. > > Post migration, we are facing issues while populating bean values in > session. > > ${} is printing null values. Seems the EL is not working post 6.x migration. > > Can you help me to understand if I'm missing something in this migration. > > Below is the code snippet for your reference. > > <s:iterator value="session.list" var="menu" status="s"> > <s:property value="id" /> // working > > ${menu.id} // Not working > <s:iterator> Could you try to test if a pure EL works, something like this: <s:set var="myVar">hello</s:set> ${myVar} If this works I would focus on checking logs, maybe you get a warning from SecurityMemberAccess, or #session is not accessible or unavailable (Struts doesn't create HttpSession if not needed). Cheers Łukasz