[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: Re: Help with syntax struts 2
From: Yasser Zamani <yasserzamani () apache ! org>
Date: 2019-03-10 14:07:12
Message-ID: AM6PR08MB435856DD3FE21DA8F8B05510AF4F0 () AM6PR08MB4358 ! eurprd08 ! prod ! outlook ! com
[Download RAW message or body]
On 3/9/2019 3:34 AM, Deborah White wrote:
> Can someone help me with the syntax on this?
>
> <s:if test='%{reportSendType == "EMAIL" && (reportId != "-1" || reportId != "-2" || \
> reportId != "29" || reportId != "30")}'>
Hi Deborah,
I tested the syntax and it works. If it doesn't work there then I guess
if reportId is String then try <s:if
test='%{reportSendType.equalsIgnoreCase("EMAIL") && (reportId != "-1" ||
reportId != "-2" || reportId != "29" || reportId != "30")}'> else then
try <s:if test='%{reportSendType.equalsIgnoreCase("EMAIL") && (reportId
!= -1 || reportId != -2 || reportId != 29 || reportId != 30)}'>. Also
try replacing || with && or != with == variations.
Thanks for using Struts!
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic