Re: Facings issues while migrating from Struts 2.5.x to 6.7
Murali Challa <[email protected]> Wed, 22 Jan 2025 15:53:45 +0530
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <CA+cwYWBkRjX-W7JFkCEz_azQhzaZd7+AGOh14=qsk-Ws+uPHiw@mail.gmail.com> |
Hi, Pure EL is working fine. Not sure why it is printing empty values while iterating through session list. Thanks, Murali On Wed, 22 Jan, 2025, 14:43 Lukasz Lenart, <[email protected]> wrote: > ś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 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >