views:

1019

answers:

1

Here is my code

<%
       request.setAttribute("lcItem", "Hello");

%>

if I do as following, m not gettin the value

<s:property value="%{lcItem}"/>
<s:property value="lcItem"/>

If you have any suggestion plz specify

Thanks in advance,

Cheers

+1  A: 

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

Vinayak.B
Aha thats good. But I don't like this thing. Its so different that you can't intelligently guess. In fact, I like neither Struts nor Struts 2. Anyway, at least it worked for you, I am happy.
Adeel Ansari