struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasserzam...@apache.org>
Subject Re: Help with syntax struts 2
Date Sun, 10 Mar 2019 14:07:12 GMT


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


Mime
View raw message