Question: What is a Hidden Comment in JSP?
By: Guru Singh Printer Friendly Format
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>
 
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
Subscribe to Tutorials
Related Tutorials
What do you understand by a J2EE module?
Tell me something about J2EE component?
What are the contents of web module?
Differentiate between .ear, .jar and .war files.
What is the difference between Session Bean and Entity Bean?
Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
What do you understand by a container?
What are the services provided by a container?
What are types of J2EE clients?
What is Deployment Descriptor?
What do you understand by JTA and JTS?
What is J2EE Connector architecture?
What is difference between Java Bean and Enterprise Java Bean?
Archived Comments
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
3. oupixiljqul
View Tutorial By: oupixiljqul at 2017-06-25 15:17:47
4. udowyapunu
View Tutorial By: udowyapunu at 2017-06-25 15:18:40