Jsp script, jsp declaration, jsp output expression, javascript, jsp tag, struts2 tag
1. define the concept in the question first. (1) jsp script: in some cases, it is also called a java Script, which is a java Script on the jsp page that is enclosed by <%>. All code that can be executed in a java program can be executed through jsp scripts. (2) jsp Declaration: Use <%! Declaration Part %> variables and Methods declared in the form. It can be directly used in jsp scripts. (3) jsp output expression: Use <% = expression %> to output the expression value. The effect is the same as out. println In the jsp script. The expression cannot be followed by a semicolon. (4) javascript: code between <script> </script> on the page, js for short. Js inserts have different execution effects depending on different locations. It is executed only when it is put in the js call in