日期:2014-05-18  浏览次数:20637 次

Update.jsp(33,3) Attribute selected invalid for tag option according to TLD
Update.jsp(33,3) Attribute selected invalid for tag option according to TLD
<%int role = ((UserInfo)list.get(0)).getRole(); 
if(role==0) {%>
<html:option value="0" selected="selected">用户</html:option>
<html:option value="1">管理员</html:option>
<html:option value="2">超级管理员</html:option>
<%}
就因为我加了个这个 要是把 selected=“selected” 去掉就没有问题 为什么啊 和if判断也没问题吧 在线等

------解决方案--------------------
<html:option value="0" selected="selected">

struts标签 <html:option>没有selected属性