The three kinds of comments in JSP and the difference between them
Three types of comments are allowed in JSP
JSP Comment:
<%-- this is jsp comment --%>
Three types of comments are allowed in JSP
JSP Comment:
<%-- this is jsp comment --%>
This is also known as hidden comment and it is
visible only in the JSP and in rest of phases of JSP life cycle it is not
visible.
HTML Comment:This is also known as template text comment or
output comment. It is visible in all phases of JSP including source code of
generated response.
Java Comments.
With in the script lets we can use even java comments .
With in the script lets we can use even java comments .
<%
// single line java comment
/* this is multiline comment */
%>
// single line java comment
/* this is multiline comment */
%>
This type of comments also known as scripting comments and these are visible in the generated servlet also.
No comments:
Post a Comment