struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ravindra" <ravin...@btpsoft.com>
Subject RE: if comparing a string
Date Fri, 22 Aug 2008 12:42:01 GMT
Where is your _status property? Is it in session or request or as a property
in your action class? And what is the data type of your _status field?

If it is in your session the below one will work
<s:if test="#session._status != 'T'">

If it is in your action class as property having getter and setter, the
below one will work

<s:if test="%{_status != 'T'}">

All the best.
 
-----Original Message-----
From: piltrafeta [mailto:piltrafeta@gmail.com] 
Sent: Friday, August 22, 2008 6:04 PM
To: user@struts.apache.org
Subject: s:if comparing a string


Hello,
in m'y jsp i'm trying to compare a String link this

<s:if test="#session.request._status != 'T' ">

but is not working, does anybody knows the sintaxis?

Thanks
-- 
View this message in context:
http://www.nabble.com/s%3Aif-comparing-a-string-tp19106286p19106286.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message