腳本元素都包括哪些格式

腳本元素有三種格式:
馬克- to-win:馬克 java社區(qū):防盜版實(shí)名手機(jī)尾號: 73203。
   i)表達(dá)式:比如下面例子的:<%=++accessCount%>:轉(zhuǎn)換代碼插入到轉(zhuǎn)成的Servlet的service方法。

   ii)Scriptlet:比如下面例子的: <% if (called() < 0.5) { %>  轉(zhuǎn)換代碼插入到轉(zhuǎn)成的Servlet的service方法。

   iii)聲明:比如下面例子的:<%!private int accessCount = 0;%> 或 <%!double called() { return Math.random(); 轉(zhuǎn)換代碼插入到轉(zhuǎn)成的Servlet的service方法之外。

2)指令:比如page指令<%@ page contentType="控制整個(gè)頁面或者include指令<%@ include file="url"

3)動(dòng)作:用來引入現(xiàn)有的組件或者跳轉(zhuǎn)。比如jsp:include,jsp:useBean,jsp:setProperty,jsp:getProperty,jsp:forward,jsp:plugin