Yes, that is why I said "Since 'activated' is a String,..."

On Sun, Jun 27, 2010 at 3:47 PM, Dale Newfield <d...@newfield.org> wrote:

> lucas owen wrote:
>
>> Bill Bohnenberger<bill98...@gmail.com>
>>
>>> Since 'activated' is a String, try swapping your single&  double quotes,
>>> e.g. <s:if test='%{warning.activated=="Y"}'>
>>>
>> >
> > that was it!!!
>
> The key is understanding *why* it makes a difference.
>
> The reason is that a single character demarcated by single quotes is not a
> String, it is a character.  The character 'Y' is not equal to the String
> "Y".
>
>
> http://struts.apache.org/2.1.8.1/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to