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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org