Comment method for 1,html
<!--... add your comments here...-->
Description: Use this annotation method, where the comment content is invisible in client browsing. However, when viewing the source code, the customer is
You can see these comment content
2,jsp Comment Tags
The JSP also provides its own markup for comments, which are used in the following format:
<%--
Add your comments here
--%>
Description: The content of this annotation method is not visible in the client source code, so security is relatively high.
Using annotations in 3,jsp scripts
As already described, the script is the program code embedded between the <% and%> tags, and the script uses the language for Java, the
The comments in the script are the same as the annotation methods in the Java class. You can use "//" to annotate a line, using "/* and * *" to note
Release multiple lines of content. The specific use format is as follows:
<%
Java Code
Single-line Comment
Java Code
/* Multiline Comment
Multi-line Comment */
Java Code
%>
JSP instance:
<body>
<!--this is an HTML comment (visible in the client source code)-->
<%--This is a JSP tag comment (not visible in the client source code)
--%>
<%
/* Here is the JSP script section,
uses the Java language to implement the string output */
Out.println ("This is an annotation instance");
Print out the string
%>
</body>