比如有代码 <s:if test="#gdzcQuestionary.isload==1">
先知道gdzcQuestionary.isload的值可以如下
<s:property value='#gdzcQuestionary.isload'/>
先知道gdzcQuestionary.isload是否==1(数字)还是=='1'(字符串) 可以如下
<s:property value='#gdzcQuestionary.isload==1'/>
或
<s:property value='#gdzcQuestionary.isload=='1''/>
空值情况
<s:if test="%{inspectInfoQuery==null||inspectInfoQuery.status==null||inspectInfoQuery.status.id!='4028864c2d77f35d012d780709890001'}">
如果inspectInfoQuery==null,
则<s:property value='%{inspectInfoQuery.status==null}' 无任何内容输出
<s:property value='%{inspectInfoQuery==null}'/> 输出为true