开发者

Possible to comment-out JSTL code?

开发者 https://www.devze.com 2023-01-19 11:53 出处:网络
If you want to temporarily comment-out a piece of JSTL code that you may re-enable later, is this possible?

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}"/>-->
开发者_JS百科


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}"/> --%>


<%-- <c:out value="${someVar}"/> --%>

This way, none of jstl code inside will be executed.

0

精彩评论

暂无评论...
验证码 换一张
取 消