s:if comparing a string

2008-08-22 Thread piltrafeta
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 -

Re: s:if comparing a string

2008-08-22 Thread Nils-Helge Garli Hegvik
What are you trying to compare with? A value in the session, or a value in the request? Or do you actually have an object named request with a _status property in the session? Maybe these resources can help: http://struts.apache.org/2.x/docs/tag-syntax.html

Re: s:if comparing a string

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, piltrafeta wrote: in m'y jsp i'm trying to compare a String link this s:if test=#session.request._status != 'T' s:if test='#session.request._status != T ' Using single quotes around a single character will create a char, not a string, like in Java. Dave

Re: s:if comparing a string

2008-08-22 Thread piltrafeta
Thanks you all guys ! I was trying to compare a String so using single cuotes solved my problem. s:if test='#session.request._status != T ' Thanks again!!! piltrafeta wrote: Hello, in m'y jsp i'm trying to compare a String link this s:if test=#session.request._status != 'T' but