Re: Facings issues while migrating from Struts 2.5.x to 6.7

Lukasz Lenart <[email protected]>
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <CAMopvkPx_4rnOb58JWv8S2soBR8QCe_4VEp7_EWCpOERu0YqCQ@mail.gmail.com>
Hi,

Please ask such questions on the User Mailing list, the Dev list is
intended to support development of the framework.
https://struts.apache.org/mail.html

I made a simple example using struts-examples (where the ${} is used
in a few places) and it works, I would check if "session.list" exists,
maybe try to use "#session.list"
<s:iterator var="id" value="{'1','2','3'}">
    prop = <s:property value="id" /><br/>
    el = ${id}<br/>
</s:iterator>

Cheers
Lukasz

śr., 22 sty 2025 o 05:16 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>
>
> Thanks,
> Murali
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.