Here is my code:
<% request.setAttribute("lcItem", "Hello"); %>
If I do as following, I'm not getting the value:
<s:property value="%{lcItem}" />
<s:property value="lcItem" />
Any suggestions?
This works perfectly..
<%
request.setAttribute("lcItem", LeftContentItem);
%>
<s:property value="#request['lcItem']" />
Note: According to the Scope we use we should specify the #request .. etc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With