struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ravindra" <>
Subject struts <s:if test=""> problem
Date Wed, 20 Aug 2008 09:41:51 GMT
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>



     <a href="rescue.action"><img src="images/tabs/five.jpg"
style="border:none;" width="150" height="83"></a>



I think the syntax for test condition has changed in this version of
struts.Please any one can help me with this issue.





  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message