Use the "" comment on the jsp page. The java code in the comment will still be executed. You can check the page source code to see the completed content. This will prevent The code you want to execute is executed, affecting loading speed. For example, the following code:
性别:<select name="qureyItemGroup.sex" class="selinp" style="width:75px;"> <option value="">全部</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>
It is recommended to use comments such as "<%-- --%>" on jsp pages, and such comments are not visible when viewing the source code on the page.
More jsp comments may affect the page loading speed and allow the code to continue executing. Please pay attention to the PHP Chinese website for related articles!