How to comment the code in jspx page? I have tried several methods,
<!-- -->
<%-- -->
but it doesn't not work!
So I have to:
<c:if test="${false}">code</c:if>,
it is really urgly, Is there any other ways? Any help is appreciated!
How to comment the code in jspx page? I have tried several methods,
<!-- -->
<%-- -->
but it doesn't not work!
So I have to:
<c:if test="${false}">code</c:if>,
it is really urgly, Is there any other ways? Any help is appreciated!
You were close with one of your attempts, JSP comments look like below:
<%-- some commented out stuff --%>
Have you tried XML IGNORE?
<![IGNORE[
<!-- commented out XML -->
]]>
Change INGORE to INCLUDE when you want it back.
I have never used JSPX, so don't pin me on it, but try
<%-- <![CDATA[ some comment ]]> --%>
or the other way round
<![CDATA[ <%-- some comment --%> ]]>