What types of comments are available in the JSP?

By: Karthik  

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 )

Interview Question: Can i map more than one table in a CMP?

Explain the new Features of JDBC 2.0 Core API?

How to define an Abstract class?

Interview Question: What is Message Driven Bean?

Getting started with Interview

What is the difference between jsp:include page and @ include file?

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?

Interview Question: What is the difference between JavaBean and EJB?

Interview Question: What is abstract schema?

Interview Question: What is local interface. How values will be passed?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Interview Question: What is the difference between sessioncontext and entitycontext?

Interview Question: Is Decorator an EJB design pattern?

Interview Question: What is the difference between EAR, JAR and WAR file?

Interview Question: What is deployment descriptor?

Latest Articles (in Interview)

Comment on this tutorial