Hi all,
I have a user java bean object in my session; it has getter and
setter for roleId.I have the following code in my jsp.Here I am trying to
load different images
Based on the condition.
<s:if test="%{user.roleId}==0">
<a href="rescue.action"><img src="images/tabs/Rescueadmin.jpg"
style="border:none;" width="150" height="83"></a>
</s:if>
<s:else>
<a href="rescue.action"><img src="images/tabs/five.jpg"
style="border:none;" width="150" height="83"></a>
</s:else>
I think the syntax for test condition has changed in this version of
struts.Please any one can help me with this issue.
Thankyou,
Ravindra.