Struts2 如何在Struts标签中添加注释?

Struts2 如何在Struts标签中添加注释?,struts2,comments,Struts2,Comments,我有下面的标签,如何添加评论呢 <s:select id="productPrice.product" name="productPrice.product" headerKey="0" headerValue="-- Select Product --" list="products" listKey="id" listValue="name"

我有下面的标签,如何添加评论呢

<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

//abc

它们都不起作用,正确的方法是什么?

您不能将注释放入标记中。您必须将它们放在Struts2标记的上方或下方。Struts2标记与HTML标记没有区别,因此:


我认为不可能在此处添加评论,以及您希望添加评论的原因??