首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Update.jsp(33,3) Attribute selected invalid for tag option according to TLD解决思路

2012-02-06 
Update.jsp(33,3) Attribute selected invalid for tag option according to TLDUpdate.jsp(33,3) Attribu

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属性

热点排行