By: Guru Singh Viewed: 153374 times Printer Friendly Format
Question: What is a Hidden Comment in JSP?
Answer: A comment that documents the JSP page but is not sent to the client. The JSP engine ignores a hidden comment, and does not process any code within hidden comment tags. A hidden comment is not sent to the client, either in the displayed JSP page or the HTML page source. The hidden comment is useful when you want to hide or "comment out" part of your JSP page.
You can use any characters
in the body of the comment except the closing --%> combination. If you need
to use --%> in your comment, you can escape it by typing --%\>.
<%-- comment --%>
<%@ page language="java" %>
<head><title>A Hidden Comment </title></head>
<%-- This comment will not be visible to the colent in the page source --%>
Most Viewed Articles (in Interview )
Latest Articles (in Interview)
Comment on this tutorial
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
1. DS Detective Agency has built a sound reputation a
View Tutorial By: neha at 2012-06-30 06:31:25
2. I think everything posted made a lot oof sense. Ho
View Tutorial By: ro invite players at 2017-05-08 06:42:08