JSP script is also called java script. It is actually a Java code fragment, which refers to the java script in the jsp page enclosed by "<%%>"; all codes that can be executed in the java program are Can be executed through jsp script. JSP scripts are divided into three types: "<%...%>", "<%=...%>", "<%!...%>".
JSP (Java Server Pages) is a dynamic resource on the JavaWeb server side. It has the same function as the html page, which is to display data and obtain data.
Composition of jsp: JSP = html Java script (code snippet) JSP dynamic tag
jsp script: also called java script in some places, refers to enclosed by <%%> java script in jsp page. All codes that can be executed in java programs can be executed through jsp scripts.
JSP script is a Java code snippet, which is divided into three types:
<!-- 下面是JSP声明部分 --> <%! public int count; public String info() { return "hello";} %> <% Integer i=10; out.println(count++); %> <% out.println(info()); %> <%=count++%> <%=info()%> <%=i%>
The above is the detailed content of What is the jsp script?. For more information, please follow other related articles on the PHP Chinese website!