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" %>
<html>
<head><title>A Hidden Comment </title></head>
<body>
<%-- This comment will not be visible to the colent in the page source --%>
</body>
</html>
 
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
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
What do you understand by JTA and JTS?
What do you understand by Synchronization?
Name the containers which uses Border Layout as their default layout?
What is bean managed transaction?
What are the call back methods in Session bean?
Can Entity Beans have no create() methods?
What is the difference between JTS and JTA?
What is difference between Java Bean and Enterprise Java Bean?
What is J2EE Connector architecture?
Tell me something about J2EE component?