Programming Tutorials

What types of comments are available in the JSP?

By: Karthik in Interview Tutorials on 2012-06-16  

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

Add Comment

* Required information


No comments yet. Be the first!

Most Viewed Articles (in Interview )

What are implicit Objects available to the JSP Page?

Interview Question: Does Struts include its own unit tests?

Explain the user defined Exceptions?

The output of System.out.println(5<<2) in Java

What is the difference between interface and abstract class?

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

What is the difference between jsp:forward and response.sendRedirect(url)

Interview Question: What is Remote client view?

What is transient variable?

Interview Question: What is EJB container?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

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?

What do you understand by JTA and JTS?

Interview Question: What is Deployment descriptor?

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

Latest Articles (in Interview)