Dear all,
I am having somewhat similar problems after upgrading from 6.3.0.2 to
7.0.0. It has become very difficult to refer to variables inside JSP code!
The first symptom I inspected was quite identical to Murali's problem:
referring to an attribute via the iterator variable name does not seem
to work, but referring to the attribute only does work. E.g. a loop of form
<s:iterator value="subjects" var="subject">
<h2><s:property value="#subject.name" /></h2>
<%-- a whole lot of other stuff --%>
</s:iterator>
does not show the values subject.name in 7.0.0 whereas in 6.3.0.2 it
does. The names show up if I refer to the name without the object
reference in the form <s:property value="name" />.
While investigating this I noted that even the set-tag example snippet
from Struts documentation no longer works? If I embed the following lines
X
<s:set var="janesName">Jane Doe</s:set>
<s:property value="#janesName"/>
Y
inside a JSP page, the result is only "X Y" in 7.0.0 but the whole
expected "X Jane Doe Y" in 6.3.0.2. Here I added the X and Y just to
verify that that part of the page is processed in the first place.
-Heikki
Murali Challa kirjoitti 22.1.2025 klo 10.54:
${} 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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org