The difference between declaration statement, scriptlet statement and expression statement in JSP

JSP declaration statement: <%! Declaration statement%>, usually declare global variables , constants, methods, classes

JSP Scriptlet: <%java code%>, is to execute a piece of code (remember to add ";" after the code), because Is the code to be executed, ";" is definitely required. A declared variable is a local variable .

JSP expression: <%=expression%>, just present a certain value (such as a string)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324575790&siteId=291194637