<s:set> tag not working

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

<s:set> tag not working

digu
Hi Friends,

I am generating a report in a jsp page using struts2.
balanceReportList has a BalanceReportVO that contains the attribute participantType, the value for the participant type is "A" this value is not being loaded in the s:set tag.

If I use the s:property then the participantType value gets loaded in the properly...

Code snippet is as follows:
<s:iterator value="balanceReportList">
<s:set name="participantType" value="participantType" />
  <s:if test="%{#participantType == 'A'}">
<%
System.out.println("&&&&&&&&&&&&&&&if block&&&&&&&&&&&&&");
%>
</s:if>
<s:else>
<%
System.out.println("&&&&&&&&&&&&&else block&&&&&&&&&&&&&&&&");
%>
</s:else>       
</s:iterator>


Any idea on what the problem might be ??
Reply | Threaded
Open this post in threaded view
|

Re: <s:set> tag not working

vinodkashyap
Administrator
hi
can you tell me what exactly is coming in the balanceReportList