You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Murali Challa <ch...@gmail.com> on 2025/01/22 04:15:49 UTC

Facings issues while migrating from Struts 2.5.x to 6.7

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

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

Posted by Lukasz Lenart <lu...@apache.org>.
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 <ch...@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>
>
> Thanks,
> Murali

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org