You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by RogerV <ro...@googlemail.com> on 2010/01/15 09:01:17 UTC

Struts 2
Hi

I'm having a problem trying to get the correct syntax for an OR test.

<s:if test="%{typeAsString=='BOOL'} || %{typeAsString=='ENUM'}"> selects
nothing, whereas 
<s:if test="%{typeAsString=='BOOL'}"> selects values as expected as does
<s:if test="%{typeAsString=='ENUM'}">

Regards
-- 
View this message in context: http://old.nabble.com/Struts-2-%3Cs%3Aif-test-syntax-tp27173346p27173346.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


Re: Struts 2 Posted by Saeed Iqbal <sa...@gmail.com>.
remove the first } and second %{

On Fri, Jan 15, 2010 at 1:01 PM, RogerV <ro...@googlemail.com> wrote:

>
> Hi
>
> I'm having a problem trying to get the correct syntax for an OR test.
>
> <s:if test="%{typeAsString=='BOOL'} || %{typeAsString=='ENUM'}"> selects
> nothing, whereas
> <s:if test="%{typeAsString=='BOOL'}"> selects values as expected as does
> <s:if test="%{typeAsString=='ENUM'}">
>
> Regards
> --
> View this message in context:
> http://old.nabble.com/Struts-2-%3Cs%3Aif-test-syntax-tp27173346p27173346.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
>
>


-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer