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

struts2的property标签,碰到Attribute id invalid for tag property according to TLD

2012-11-12 
struts2的property标签,遇到Attribute id invalid for tag property according to TLD如题,在jsp里面写的

struts2的property标签,遇到Attribute id invalid for tag property according to TLD
如题,在jsp里面写的是:<s:property id="currentpage"value="currentpage" /> ,已经引入了<%@ taglib uri="/struts-tags" prefix="s"%>,但是对id报错,在myeclipse里面直接就报错,Undefined attribute name "id",运行后报错:Attribute id invalid for tag property according to TLD 。后来把id去掉,直接用value获取值也是可以的,但为什么加上id会报错呢?

[解决办法]
<s:property id="currentpage">
struts2本身就有回显功能,不用加value也可以的
[解决办法]

探讨

Attribute id invalid for tag property according to TLD
就是property这个标签没有id这个属性

热点排行