What are JSP comments?

JSP comment marks text or statements that the JSP container should ignore. A JSP comment is useful when you want to hide or "comment out", a part of your JSP page.

Following is the syntax of the JSP comments −


Following example shows the JSP Comments −

   
      A Comment Test
   
   
      

A Test of Comments

         

The above code will generate the following result −

A Test of Comments
Updated on: 2019-07-30T22:30:25+05:30

8K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements