哦,忘了说,在jbuilder下是正常的,但是在ie运行就不行了,报得是NumberFormatException异常!代码片断:
<html:select property="selRegion" disabled="true">
<logic:present name="regions"〉
<html:options collection="regions"
property="regionId"
labelProperty="regionName"/>
</logic:present>
</html:select>
<html:select property="selRegion" disabled="true">
<logic:present name="regions"〉
<html:options collection="regions"
property="regionId"
labelProperty="regionName"/>
</logic:present>
</html:select>
解决方案 »
- 如何成为JAVA高手 应该先学什么??
- 各位朋友帮我解释一下我 这个代码的意思
- byte[]转换为字符串后,怎样能把字符串再转回byte[]类型呢?(在线等)
- 准备用weblogic开发,哪个版本的好
- oracle.jdbc.pool.OracleConnectionCacheImpl
- 论String操作时间复杂度
- JAVA连接SAP的问题请教
- JavaMail的folder.open()问题?
- 寻找最简单的hibernate入门资料!
- 碰到一个调用controller层调用service报错的问题,大家帮看看,不废话直接上图
- 谁那里有CRM的资料,100分接
- 早早的醒来,突然想起一个关于ejb里的一些细节问题,发帐号讨教
实在没办法就用脚本
<html:options collection="regions"
property="regionId"
labelProperty="regionName"/>
</html:select>
不需要<logic:present>循环了< html:options>本身就就把collection 中的东东全都表示出来
<logic:present name="regions"〉
<html:options collection="regions"
property="regionId"
labelProperty="regionName"/>
</logic:present
可能regions不存在,所以select 没有 options,从而导致出错
你难道非得用select 吗?if (正常条件下){ 显示标准的select标签! }
else(该字段不能被改动){
<%=需要输出的值(该值是直接输出到页面的)%>
<html:hidden property="该字段" value="<%=需要输出的值%>"/>
}---------------------------------------
该方法可以使你的字段既不被改动,有可以正常提交!