标签:chapter www scripting int turn ESS 包括 clu tin
1)脚本元素有三种格式:(视频下载) (全部书籍)
i)表达式:比如下面例子的:<%=++accessCount%>:转换代码插入到转成的Servlet的service方法。
ii)Scriptlet:比如下面例子的: <% if (called() < 0.5) { %> 转换代码插入到转成的Servlet的service方法。
iii)声明:比如下面例子的:<%!private int accessCount = 0;%> 或 <%!double called() { return Math.random(); 转换代码插入到转成的Servlet的service方法之外。
2)指令:比如page指令<%@ page contentType="控制整个页面或者include指令<%@ include file="url"
标签:chapter www scripting int turn ESS 包括 clu tin
原文地址:https://www.cnblogs.com/mark-to-win/p/10556819.html