Chris Pratt wrote:
>
> Try reversing the quotes:
> <s:if test='type == "I"'>
>
> (*Chris*)
>
> On 9/6/07, venichka <[EMAIL PROTECTED]> wrote:
>>
>> I'm new to Struts 2. I would like to do a very simple comparison between
>> Strings.
>> <s:if test="type == 'I'">Incident: </s:if>
>> <s:else>Report: </s:else>
>> It doesn't work as 'I' is converted to Character.
>> Am I mistaking something?
>> Can somebody help?
>> --
>> View this message in context:
>> http://www.nabble.com/s%3Aif-comparing-Strings-problem-tf4392447.html#a12523501
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Re%3A-s%3Aif-comparing-Strings-problem-tf4393210.html#a12534764
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]