JSP標準指令(Standard Directive)
JSP程式碼元素(Scripting Elements):(ex:,,,…)
JSP標準動作(Standard Action):(ex:<>,<>…)
JSP陳述語言(Expression Language)(ex:ch7)
標籤函式庫(Tag Library)(ex:ch9)
02.JSP的生命週期的七個階段
網頁解釋(Page Translation)
JSP編譯(JSP Compilation)
載入類別(Loading the Classes)
建立Servlet實體(Installing the Classes)
呼叫jspInit()方法(jspInit() invocation)
呼叫_jspService()方法(_jspService() invocation)
呼叫jspDestroy()方法(jspDestroy() invocation)
03.JSP標準指令
A JSP directive provides information about the JSP page to the JSP engine.
The types of directives are page, include, and taglib (a directive starts with a < %@ and ends with a % >):
The page directive is used to define certain attributes of the JSP page:< %@ page import=“java.util.*, com.foo.*” % >(設定JSP的整體組態資訊)
The include directive is used to include the contents of a file in the JSP page:< %@ include file=“/header.jsp” % >(在JSP內包含其他JSP的內容)
The taglib directive allows us to use the custom tags in the JSP pages:< %@ taglib uri=“tlds/taglib.tld” prefix=“mytag” % >(在JSP內使用「自訂標籤函式庫」)
04. JSP程式碼元素
05.JSP標準動作
jsp:include(enable a JSP page to reuse other web components.)
jsp:forward(enable a JSP page to reuse other web components.)
jsp:useBean(related to the use of JavaBeans in JSP pages.)
jsp:setProperty(related to the use of JavaBeans in JSP pages.)
jsp:getProperty(related to the use of JavaBeans in JSP pages.)
jsp:plugin
06.JSP隱含變數
07.JSP例外事件處理機制
Example 1 //OK: exception defined implicitly
< %@ page isErrorPage='true' % >
Msg: < %=exception.toString()% >
Example 2 //Error: exception not defined
Msg: < %=exception.toString()% >
< %@ page errorPage=“ExceptionHAndling.jsp”% >
08.以XML語法撰寫JSP
09.組態JSP執行環境
使用< jsp-config >來組態JSP執行環境
2 則留言:
您好,我想跟您購買"SCWCD認證專家應考指南第二版"這本書,不知可否割愛,謝謝(如果可以請連絡我 nscwst@yahoo.com.tw)
sorry!已經賣掉囉!!
張貼留言