[英]Why the jsp apply struts2 always display attribute id invalid for tag url according to TLD?
enter code here
enter image description here enter code here
输入图片说明
PLease tell me the solution for this problem .Thank you .请告诉我这个问题的解决方案。谢谢。
The solution is to not use an attribute that doesn't exist on the <s:url>
tag.解决方案是不使用<s:url>
标签上不存在的属性。
As per the documentation :根据文档:
NOTE: The id attribute is deprecated in Struts 2.1.x, and has been replaced by the var attribute.注意: id 属性在 Struts 2.1.x 中已被弃用,并已被 var 属性取代。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.