html:select的一个问题。

hebiyouwo3 2008-03-16 10:31:58

<html:select property="question">
<html:option>1</html:option>
<html:option>2</html:option>
</html:select>

这个是源码,当打开页面时IE提示:
jsp(69,6) According to the TLD or the tag file, attribute value is mandatory for tag option
错误指向了上面的SELECT,如果把上面的代码去掉,就一切正常。????
...全文
345 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
dracularking 2008-03-16
  • 打赏
  • 举报
回复
jsp(69,6) According to the TLD or the tag file, attribute value is mandatory for tag option
嗯,根据标签库描述文件或标签文件要求,对于option标签的属性值是强制的
yibunengjing 2008-03-16
  • 打赏
  • 举报
回复
网络又出问题,不好意思,3连了
yibunengjing 2008-03-16
  • 打赏
  • 举报
回复
<html:option>1</html:option>有问题,正确写法:
<html:option value="1">1</html:option>
yibunengjing 2008-03-16
  • 打赏
  • 举报
回复
错误说明是你的<html:option>1</html:option>没有value属性
正确的写法应该是<html:option value="xxx">1</html:option>
ee4456 2008-03-16
  • 打赏
  • 举报
回复
引用 4 楼 dracularking 的回复:
jsp(69,6) According to the TLD or the tag file, attribute value is mandatory for tag option
嗯,根据标签库描述文件或标签文件要求,对于option标签的属性值是强制的

也就是这个属性直不能为空。。。。。
加油馒头 2008-03-16
  • 打赏
  • 举报
回复
<option >的格式是有规定的
aaaaa6794 2008-03-16
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 dracularking 的回复:]
jsp(69,6) According to the TLD or the tag file, attribute value is mandatory for tag option
嗯,根据标签库描述文件或标签文件要求,对于option标签的属性值是强制的
[/Quote]
bryantd 2008-03-16
  • 打赏
  • 举报
回复
<option>标签里面必须要有一个value属性。

67,537

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧