Tutorial by Topics: comments

Similar to other programming, markup, and markdown languages, comments in HTML provide other developers with development specific information without affecting the user interface. Unlike other languages however, HTML comments can be used to specify HTML elements for Internet Explorer only. This topic explains how to write HTML comments, and their functional applications.

Comments are used to show information in a batch script.

JSF as a markup language, supports comments of some parts of code, but we have be carefully, because if we use a normal HTML comment code like this: <!-- I want to comment the next button --> <!-- <h:commandButton value="Push" onclick="alert('Hello');" /> --> It's possible that it doesn't has commented anything. This is because JSF process this code as default, even if is commented between tags <!-- and -->. There are two solutions to comment any JSF code

COMMMENT main purpose is to define or change a comment on database object.

Only a single comment(string) can be given on any database object.COMMENT will help us to know what for the particular database object has been defined whats its actual purpose is.

The rule for COMMENT ON ROLE is that you must be superuser to comment on a superuser role, or have the CREATEROLE privilege to comment on non-superuser roles. Of course, a superuser can comment on anything

There are multiple ways to add comment in JSP page, as it is java view technology which primarily focuses on view part of web application which includes html majorly and being java technology it can contain java code as well. So one needs to understand how to use proper comments in jsp.

There are 3 types of comments we can use in JSP page:

JSP comment

HTML comment

Java comment (which can used inside scriplets)

Page 1 of 2