【发布时间】:2015-10-28 06:54:38
【问题描述】:
作为一种良好的编码习惯,我们不应该在 jsp 中使用 scriptlet。 我想在我的 jsp 中为其他开发人员编写 cmets,但不想在页面转换为 html 时将其显示给客户端。
有什么方法可以使用 jstl 或 El 编写以下代码?
<%
//for perfromance we redirect control to this jsp
//as this jsp don't load unused dom ,css , js
%>
我在网上找不到任何东西?
【问题讨论】:
-
为什么不使用 JSP cmets ?
<%-- comment --%> -
仅供参考:JSP 的后续 Facelets 可以配置为在呈现期间跳过纯 HTML cmets。另见 a.o. stackoverflow.com/q/3388109
-
我正在寻找
kinda tag 来写 cmets。