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

struts 中怎么用变量控制标签的只读属性?再线等

2012-02-07 
struts 中如何用变量控制标签的只读属性?再线等我这样写了,不行%StringstrReadOnlytrue %html:text

struts 中如何用变量控制标签的只读属性?再线等
我这样写了,不行
<%
String   strReadOnly   =   "true ";
%>
<html:text   name= "arrList "   property= "overst_timeh "   size= "5 "   readonly= " <%=strReadOnly%> "   />

[解决办法]
你那个true成字符串了 不是boolean型的啊
[解决办法]

<%
String strReadOnly = "true ";
%>
改称
<%
boolean strReadOnly = true;
%>
就可以了。

热点排行