Thanks Dave, that's sorted it.

I've worked with many technologies over many years, but the quirks of OGNL
with Struts2 seem to defy reason for me. Totally frustrating!

But thanks again for your help.


>The answer is that OGNL interprets a single character between single quotes
as a character, not a string, so the original comparison will not work.
Using double quotes will work, as will using a more meaningful
representation of the action (like "insert").

>This has been a FAQ entry for some time:

>http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html

>Dave


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




-- 
View this message in context: 
http://www.nabble.com/Simple-Question--tp21037097p21044006.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to