Struts中的用法

其一:
<s:elseif test="#session.table=='checks'" >
              <select name="table" id="name" onchange="c(1)" >
             <option value="radio" style="color: #43860c" >单选题</option>
             <option value="checks" style="color: #43860c" selected="selected">多选题</option>
             <option value="calking" style="color: #43860c">填空题</option>
              <option value="question" style="color: #43860c">问答题</option>&nbsp;&nbsp; 
              </SELECT>
        </s:elseif>


其二:
<s:iterator id="r" value="#session.list" status="st">

           <s:if test="0==#r.rdiffcult"><font color="#999966">简单</font> </s:if>
            <s:elseif test="1==#r.rdiffcult"> <font color="#cc00ff">普通</font> </s:elseif>
            <s:elseif test="2==#r.rdiffcult"> <font color="#660000">困难</font> </s:elseif>

          </s:iterator>

你可能感兴趣的:(java,struts)