Types of JSP and HTML page annotations

Source: Internet
Author: User

<!--This note is still visible when you view the page source code, and the contents of the comment are still compiled when the page loads.

<%--The comments in the JSP, this content in the view of the page source code, not see the contents of this note writing--%>
so the recommendations that involve the business use <%----%> comments, text-descriptive suggestions using <!----> comments.


Comments are as follows:
(1) HTML page Comments-----The comments will be compiled (when the page is loaded, the syntax is judged, the required variable defaults are taken)

<!--hidden Quiz ID--


(2) JSP page comment------The comment after this is not compiled

<%--Comment Content--%>


(3) Single-line comment in JSP
<%
Write the contents of a note

%>


(4) Multi-line comment in JSP
<%
/*
Write the contents of a note
Write the contents of a note
*/
%>

Note: When the JSP page is loaded, it is converted to the Sevlet class and then compiled and run.
corresponding position such as: Tomcat\localhost\_\org\apache\jsp\xx\xx\xx\edit_jsp.class

Types of JSP and HTML page annotations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.