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, <lukaszlen...@apache.org> wrote:

> śr., 22 sty 2025 o 09:55 Murali Challa <challamura...@gmail.com>
> 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: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to