If you want to temporarily comment-out a piece of JSTL code that you may re-enable later, is this possible?
Would this work?
<!--<c:out value="${someVar}"/>-->
Add JSP comment using the <%-- --%> tags.
JSP lets you even define your own tags (you must write the code that actually implement the logic of those tags in Java). JSTL is just a standard tag library provided by Sun (well, now Oracle) to carry out common tasks (such as looping, formatting, etc.).
No. It is not possible to have JSTL in HTML page.
When you write such comment in your JSP file:
<!-- <c:out value="${someVar}"/> -->
This means that this comment will be outputed, i.e. present in the generated HTML page. If you want to hide your code, use the JSP comments:
<%-- <c:out value="${someVar}"/> --%>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With