struts2 <if> 标签变量判断问题 50
<selectname="linetypeid"class="leftfod"id="linetypeid"style="width:150px;"><optionval...
<select name="linetypeid" class="leftfod" id="linetypeid" style="width:150px;">
<option value="" >==请选择干线==</option>
<s:iterator id="d" value="lineTypeList">
<option value="${d.id}" <s:if test="%{#d.id}==%{#repairLineView.linetypeid}">selected="selected" </s:if> >${d.id}|${repairLineView.linetypeid}|${d.lineTypeName}</option>
</s:iterator>
</select>
<s:if test="%{#d.id}==%{#repairLineView.linetypeid}">selected="selected" </s:if> > 这句话不执行,2个变量确实有值相同的时候,麻烦各位指导下 展开
<option value="" >==请选择干线==</option>
<s:iterator id="d" value="lineTypeList">
<option value="${d.id}" <s:if test="%{#d.id}==%{#repairLineView.linetypeid}">selected="selected" </s:if> >${d.id}|${repairLineView.linetypeid}|${d.lineTypeName}</option>
</s:iterator>
</select>
<s:if test="%{#d.id}==%{#repairLineView.linetypeid}">selected="selected" </s:if> > 这句话不执行,2个变量确实有值相同的时候,麻烦各位指导下 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询