我有以下标签,如何在其中添加评论?
<s:select id="productPrice.product"
name="productPrice.product"
headerKey="0"
headerValue="-- Select Product --"
list="products"
listKey="id"
listValue="name"
value="productPrice.product.id"
theme="simple"
onchange="getDisplayName(value)" <!-- How to comment here ? -->
/>
我试过了 :
<!-- abc -->
<%-- abc --%>
// abc
它们都不起作用,正确的方法是什么?
最佳答案
您不能将评论放在标签中。您必须将它们放在 Struts2 标签的上方或下方。 Struts2 标签与 HTML 标签没有区别,因此:
关于struts2 - 如何在 Struts 标签中添加注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12584896/