Jsp comments may affect page loading speed. jsp comments may affect page loading.
Use "<! --> "Comment. The java code in the comment will still be executed. You can view the executed content on the page source code, in this way, the code that you do not want to execute will be executed, affecting the loading speed. For example, the following code:
Gender: <select name = "qureyItemGroup. sex "class =" selindium "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>
We recommend that you use annotations such as <% -- %> On the jsp page, and such annotations are invisible for viewing source code on the page.
JSP page comments
<! --
Comment content
-->
<% --
Comment content
-- %>
The two functions are the same.
How to Use Annotations on jsp pages
// Only javascript in jsp can be commented
<! -- Comments -->
<% -- Note -- %>