<input type="checkbox" name="checkRoleId"
<s:if test="stringBuffer.indexOf(',<s:property value='#roleList.roleId'/>)>=0" ··> ·· checked </s:if> value="<s:property value='#roleList.roleId'/>" >这个input标签里的第一个“<”本来应该对应最后一个“>”的 可是结果我看了一下好像对应到了··> ··中间的“>” 大家看的时候把··去掉啊 我在线等 请各位大侠帮帮啊 我好急啊
<s:if test="stringBuffer.indexOf(',<s:property value='#roleList.roleId'/>)>=0" ··> ·· checked </s:if> value="<s:property value='#roleList.roleId'/>" >这个input标签里的第一个“<”本来应该对应最后一个“>”的 可是结果我看了一下好像对应到了··> ··中间的“>” 大家看的时候把··去掉啊 我在线等 请各位大侠帮帮啊 我好急啊
<option value="" <c:if test="${filter.aliveFlag eq '' }">selected="selected"</c:if>>--全部--</option>
<option value="1" <c:if test="${filter.aliveFlag eq '1' }">selected="selected"</c:if>>--已授权 --</option>
<option value="0" <c:if test="${filter.aliveFlag eq '0' }">selected="selected"</c:if>>--取消 --</option>option换成input。。
<s:if test="stringBuffer.indexOf(',<s:property value='#roleList.roleId'/>)>=0" > checked </s:if> value="<s:property value='#roleList.roleId'/>" > 这样写好像引号哪个地方出问题了 就是早不到问题在哪里
你的indexOf方法里第一个参数差一个单引号
我的压缩包里面不止一两样东西哦,那可是我学习和工作的所有资料,不管是学习还是工作都会需要。
http://download.csdn.net/user/yangtonghai
<input type="checkbox" name="checkRoleId"<s:if test="stringBuffer.indexOf(\"'\",<s:property value='#roleList.roleId'/>)>=0">
checked
</s:if> value="<s:property value='#roleList.roleId'/>" >