3

我有以下标签,如何在其中添加评论?

<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

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

4

1 回答 1

3

您不能将评论放在标签内。您必须将它们放在 Struts2 标记的上方或下方。Struts2 标签与 HTML 标签没有区别,所以:

于 2012-09-25T16:39:58.560 回答