Question: What is an output comment in JSP?

By: Guru Singh Emailed: 1675 times Printed: 2154 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 an output comment in JSP?

Answer:  A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser.

JSP Syntax
<!-- comment [ <%= expression %> ] -->

Example 1

<!-- This is a commnet sent to client on
<%= (new java.util.Date()).toLocaleString() %>
-->

Displays in the page source:
<!-- This is a commnet sent to client on January 24, 2004 -->

 

 

 

 

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 Action Class?
Interview Question: Is there a particularly good IDE to use with Struts ?
Types of Interviews
What is Collection API?
Interview Question: How is the MVC design pattern used in Struts framework?
Interview Question: What is Struts Validator Framework?
Interview Question: What is ActionForm?
Interview Question: What are the optional clauses in EJB QL?
Interview Question: What is the difference between EAR, JAR and WAR file?
Interview Question: What is lazy loading?
Interview Question: What is Message Driven Bean?
Interview Question: What is abstract schema?
Interview Question: What is the difference between find and select methods in EJB?
Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
Getting started with Interview
Most Emailed Articles (in Interview)
Interview Question: Where can I get help with Struts?
Interview Question: Does Struts include its own unit tests?
Interview Question: What is EJB container?
Types of Interviews
Question: What is an output comment in JSP?
Question: How would you go about analyzing performance of an application?
Explain the new Features of JDBC 2.0 Core API?
What is JSP Output Comments?
What is the difference between interface and abstract class?
Interview Question: What is Struts?
Interview Question: What is ActionForm?
Interview Question: Is Struts compatible with other Java technologies?
Interview Question: What is ActionServlet?
Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?
Interview Question: What is the difference between ejbCreate() and ejbPostCreate?