是否可以注释掉JSTL代码? [英] Possible to comment-out JSTL code?

查看:107
本文介绍了是否可以注释掉JSTL代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您想暂时注释掉一段您以后可能重新启用的JSTL代码,是否有可能?

If you want to temporarily comment-out a piece of JSTL code that you may re-enable later, is this possible?

这会有效吗?

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


推荐答案

/ p>

When you write such comment in your JSP file:

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

这意味着将输出此注释,即显示在生成的HTML页面中。
如果要隐藏您的代码,请使用JSP注释:

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

这篇关于是否可以注释掉JSTL代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆