JSP comments may affect page load speed Let the code throw continue to execute _jsp programming

Source: Internet
Author: User
Tags comments

In the JSP page using the "<!---->" comment, the Java code in the note will be executed, you can view the page source code to see the implementation of the completion of the content, so that the code does not want to execute, affecting the load speed. For example, the following code:

Copy Code code as follows:

Sex: <select name= "Qureyitemgroup.sex" class= "Selinp" style= "width:75px"; >
<option value= "" > All </option>
<s:iterator value= "Listdictsex" >
<option <s:property value= "@com. hljw.util.utilapi@gethtmlselected (dict_value,qureyitemgroup.sex)"/> Value= "<s:property value=" Dict_value "/>" ><s:property value= "Dict_name"/></option>
</s:iterator>
</select>

Comments such as "<%----%>" are recommended on JSP pages, and such comments are not visible on the page to view the source code.

Related Article

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.