struts问题,为什么显示actionerrors时

WonderOne 2004-05-07 08:02:25
错误有几行
第一行有一个点,后面为空白,没有错误提示,
下面一行是一个点,跟着是错误提示!
另外,我<html:text>标签加上maxlength
<html:text property="userName" size="16" maxlength="16"/>
就提示
Attribute maxLength invalid for tag text according to TLD错误
去掉就可以了
怎么回事?
...全文
72 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
cscjp213 2004-08-10
  • 打赏
  • 举报
回复
up
xch28 2004-05-10
  • 打赏
  • 举报
回复
<html:text property="userName" size="16" maxlength="16"/>

这句是没有错的
fuzuyuan 2004-05-09
  • 打赏
  • 举报
回复
在你的ApplicationResources.properties中加入
errors.header=<center><font color="red">
errors.footer=</font></center>
这两句还会有那两个点吗?
Attribute maxLength invalid for tag text according to TLD
说明你写了一个属性maxLength这个属性是不存在的,应该是maxlength改过来就可以了
秋*水 2004-05-08
  • 打赏
  • 举报
回复
是不是你的第一个错误信息的格式不对呀!
至于html:text的问题,看错误好象是你把maxlength写错了,maxLength,html的标签是区分大小写的。仔细看看吧。
minghuitian 2004-05-07
  • 打赏
  • 举报
回复
gz

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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