下拉菜单Struts跌代比较

<select name="post.id">
      <logic:iterate id="item" type="com.oa.bean.Post" collection="${requestScope.postlist}">

       <logic:equal   name="item"   property="id"   value="${requestScope.users.post.id}">  
               <option value="${item.id }" selected="selected">${item.postname}</option>
        </logic:equal>

           <logic:notEqual   name="item"   property="id"   value="${requestScope.users.post.id}">
           <option value="${item.id }" >${item.postname}</option>
           </logic:notEqual>

        </logic:iterate>
     </select>

你可能感兴趣的:(struts)