How comment a JSP expression?

后端 未结 7 2255
栀梦
栀梦 2020-12-23 00:16

How can I comment a JSP expression like: <%= map.size() %>

Is there something like <%= // map.size() %>?

7条回答
  •  情深已故
    2020-12-23 01:03

    When you don't want the user to see the comment use:

    <%-- comment --%>
    

    If you don't care / want the user to be able to view source and see the comment you can use:

    
    

    When in doubt use the JSP comment.

提交回复
热议问题