struts-tags标签特殊用法

来源:互联网 发布:avast淘宝激活 编辑:程序博客网 时间:2024/05/17 07:42

用struts-tags标签时肯定是要在jsp开头引入这句话的

<%@ taglib uri="/struts-tags" prefix="s"%>

下面写一下如何用<s:if ></s:if>判断取值,

<s:if test="#request.demands==null"><span>暂时没有任何需求任务!</span></s:if>


<s:if test="#demand.status==1"> </s:if>


0 0
原创粉丝点击