简体   繁体   中英

Why the jsp apply struts2 always display attribute id invalid for tag url according to TLD?

enter code here enter image description 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.

As per the documentation :

NOTE: The id attribute is deprecated in Struts 2.1.x, and has been replaced by the var attribute.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM