Question: What is a Hidden Comment in JSP?

By: Guru Singh Emailed: 1728 times Printed: 2329 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

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 --%>

Examples
<%@ 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>

 

 

 

 

Interview Home | All Interview Tutorials | Latest Interview Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Guru Singh
Scrolling message on the status bar using Javascript
Diabling Right Click option in a browser using Javascript
Password protect a web page using Javascript
Using revealTrans to do page transitions in Javascript
Question: How is the MVC design pattern used in Struts framework?
Question: What is the directory structure of a web application?
Question: Explain the life-cycle methods in JSP?
Question: What is an output comment in JSP?
Question: What is a Hidden Comment in JSP?
Question: What is an Expression tag in JSP?
Question: Difference between forward and sendRedirect in JSP?

More Tutorials in Interview
What is J2EE?
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 JAXP?
What is J2EE Connector architecture?
What is difference between Java Bean and Enterprise Java Bean?

More Latest News
Most Viewed Articles (in Interview )
Interview Question: What is EJB client JAR file?
What do you understand by a J2EE module?
Question: What is a Hidden Comment in JSP?
Tell me something about J2EE component?
Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
What are types of J2EE clients?
What is the difference between JTS and JTA?
What is similarities/difference between an Abstract class and Interface?
Interview Question: What is Action Class?
Interview Question: Why do we need Struts?
Interview Question: Do you have to credit Struts on your own website?
Interview Question: Does Struts include its own unit tests?
Interview Question: What is ActionServlet?
Interview Question: What is EJB container?
Interview Question: What is the difference between sessioncontext and entitycontext?
Most Emailed Articles (in Interview)
Interview Question: Do you have to credit Struts on your own website?
Interview Question: Is there a particularly good IDE to use with Struts ?
Interview Question: What is the difference between ejbCreate() and ejbPostCreate?
Interview Question: Can i map more than one table in a CMP?
Interview Question: What is lazy loading?
Question: Difference between forward and sendRedirect in JSP?
Question: Explain the life-cycle methods in JSP?
What is J2EE Connector architecture?
What is bean managed transaction?
What is the difference between interface and abstract class?
Interview Question: What is Struts?
Interview Question: How is the MVC design pattern used in Struts framework?
Interview Question: Who makes the Struts?
Interview Question: Why it is called Struts?
Interview Question: What is Action Class?