struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "heberraja@gmail.com"<heberr...@gmail.com>
Subject Converting struts1 tag to struts2 null handling
Date Fri, 24 Nov 2017 12:01:36 GMT


The following struts 1 code evaluates to true when row.type is null.

<logic:notEqual property="type" name="row" value="head">

The same I converted into struts2 as below but it evaluates to false when row.type is null.

<s:if test='%{! #row.type.equals("head")}'>

How to make this true when #row.type is null.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message