当前位置: 代码迷 >> Web前端 >> struts2 变量的运用
  详细解决方案

struts2 变量的运用

热度:49   发布时间:2012-08-24 10:00:21.0
struts2 变量的使用
struts2 变量的使用


  <s:set name="result" value="result" />
        <s:if test="#result=='ok'">
                               调用成功
        </s:if>
       
        <s:if test="#result!='ok'">
                         调用失败!
        </s:if>

s:set中 value中的var是java类中的变量名称.
引用变量需要使用#号开头
  相关解决方案