What types of comments are available in the JSP?

By: Karthik Printer Friendly Format    

Answer: There are two types of comments are allowed in the JSP. These are hidden and output comments. A hidden comments does not appear in the generated output in the html, while output comments appear in the generated output.
Example of hidden comment:
<%-- This is hidden comment --%>
Example of output comment:
<!-- This is output comment -->



Most Viewed Articles (in Interview )

What do you understand by Synchronization?

Explain the different forms of Polymorphism.

Interview Question: What is ActionServlet?

Interview Question: Is there a particularly good IDE to use with Struts ?

Interview Question: What is EJB client JAR file?

Interview Question: Is Decorator an EJB design pattern?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

Differentiate between .ear, .jar and .war files.

What are the services provided by a container?

Name the containers which uses Border Layout as their default layout?

What is Collection API?

What is similarities/difference between an Abstract class and Interface?

Interview Question: What is Struts?

Interview Question: How is the MVC design pattern used in Struts framework?

Interview Question: Who makes the Struts?

Latest Articles (in Interview)

Comment on this tutorial