Question: What is a Hidden Comment in JSP?

By: Guru Singh  

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 --%\>.
JSP Syntax
<%-- comment --%>

<%@ page language="java" %>
<head><title>A Hidden Comment </title></head>
<%-- This comment will not be visible to the colent in the page source --%>





Archived Comments

1. udowyapunu
View Tutorial          By: udowyapunu at 2017-06-25 15:18:40

2. oupixiljqul
View Tutorial          By: oupixiljqul at 2017-06-25 15:17:47

3. I think everything posted made a lot oof sense. However,
what about this? suppose you dded a

View Tutorial          By: ro invite players at 2017-05-08 06:42:08

4. DS Detective Agency has built a sound reputation among our clients. We provide all Kind of investiga
View Tutorial          By: neha at 2012-06-30 06:31:25

Most Viewed Articles (in Interview )

Latest Articles (in Interview)

Comment on this tutorial