1.model中设置isPrint(String类型)为Y
2.页面上写如下4中判断
<ww:if test="isPrint==Y">
test="isPrint==Y"
</ww:if>
<ww:if test="#isPrint==Y">
test="#isPrint==Y"
</ww:if>
<ww:if test='#isPrint=="Y"'>
test='#isPrint=="Y"'
</ww:if>
<s:if test='%{#isPrint == "Y"}'>
test='%{#isPrint == "Y"}'
</s:if>
3.页面却打印出
test="#isPrint==Y"
test='%{#isPrint == "Y"}'
4.Struts2 标签判断字符串相等就是 test="#isPrint==Y" 和test='%{#isPrint == "Y"}'
如果isPrint类型为数字(Double,Long等)的话
页面显示值为 test="isPrint==100" test='%{#isPrint == "100"}'
2.页面上写如下4中判断
<ww:if test="isPrint==Y">
test="isPrint==Y"
</ww:if>
<ww:if test="#isPrint==Y">
test="#isPrint==Y"
</ww:if>
<ww:if test='#isPrint=="Y"'>
test='#isPrint=="Y"'
</ww:if>
<s:if test='%{#isPrint == "Y"}'>
test='%{#isPrint == "Y"}'
</s:if>
3.页面却打印出
test="#isPrint==Y"
test='%{#isPrint == "Y"}'
4.Struts2 标签判断字符串相等就是 test="#isPrint==Y" 和test='%{#isPrint == "Y"}'
如果isPrint类型为数字(Double,Long等)的话
页面显示值为 test="isPrint==100" test='%{#isPrint == "100"}'