JSP Comment

Advertisements

JSP Scripting Element JSP Declaration Tag

JSP Comment

This is used to define comment description in jsp page. In jsp page we can insert three types of comments they are;

  • Jsp comment
  • Html comment
  • Java comment

JSP Comment

This type of comment is called as hidden comment, because it is invisible when a jsp is translated into a servlet internally.

Syntax

<%-- Comment discription %>

Html Comment

Html comment tag is common for Html, xml and jsp. In a jsp page if we write html comment these comment are visible in the _jspService(-,-) of the internal Servlet.

Syntax

<!--  Comment discription -->

Java Comment

We can write a single or multi line comment of java in a scriptlet tag.

Java comment are allowed only inside scriptlet tags because we can insert java code in a jsp only at a scriptlet tags.

Syntax

//  Single line comment       

/*
Multiline comment
*/

JSP Scripting Element JSP Declaration Tag

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects