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

Google Advertisment

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

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

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements