Java Server Pages: A Code-Intensive Premium Reference- P25
Số trang: 5
Loại file: pdf
Dung lượng: 156.64 KB
Lượt xem: 11
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Java Server Pages: A Code-Intensive Premium Reference- P25:Before you begin reading Pure JSP Java Server Pages, you might want to take a look at its basicstructure. This should help you outline your reading plan if you choose not to read the text from cover tocover. This introduction gives you an overview of what each chapter covers.
Nội dung trích xuất từ tài liệu:
Java Server Pages: A Code-Intensive Premium Reference- P25The getSession() method returns the session from which the listener is being bound or unbound.getSession() has no parameters and throws no exceptions.Returns HttpSessionHttpUtils Classpublic class HttpUtils extends java.util.EventObjectThe HttpUtils class contains a collection of static utility methods that are useful to HTTP servlets. TheHttpUtils class has four methods, described in the following sections.HttpUtils() Methodpublic HttpUtils()The HttpUtils() constructor creates an empty HttpUtility object. HttpUtils() has noparameters, returns no value, and throws no exceptions.parseQueryString() Methodpublic static java.util.Hashtable parseQueryString(java.lang.String s)The parseQueryString() method takes the passed-in query string and parses it into a Hashtable ofkey/value pairs, where the values are arrays of strings. parseQueryString() throws no exceptions.Parameters java.lang.StringReturns java.util.HashtableparsePostData() Methodpublic static java.util.Hashtable parsePostData(int len, ServletInputStream in)The parsePostData() method takes HTML form data that is sent to the server as a POST request,parses it, and returns a Hashtable of key/value pairs. If keys have multiple values, their values arestored as an array of Strings. parsePostData() throws no exceptions.Parameters int ServletInputStreamReturns java.util.HashtablegetRequestURL() Methodpublic static java.lang.StringBuffer getRequestURL(HttpServletRequest request)The getRequestURL() method takes a request object and reconstructs the URL used by the client tomake the request. getRequestURL() throws no exceptions.Parameters HttpServletRequestReturns java.lang.StringBuffer - 241 -List of FiguresChapter 1: JSP Overview: The Components of a JavaServer PageFigure 1.1: Output of the JSP example.Figure 1.2: The steps of a JSP request.Chapter 2: Java ServletsFigure 2.1: Execution of a Java servlet.Figure 2.2: A high-level object model of the servlet framework.Figure 2.3: A GenericServlet request.Figure 2.4: An HttpServlet requestFigure 2.5: The BasicServlet HTML response page.Figure 2.6: The BasicServlet depicted in the framework.Chapter 4: JDBC and JSP ConceptsFigure 4.1: The two-tier JDBC model.Figure 4.2: The three-tier JDBC model.Figure 4.3: The Type 1 JDBC-ODBC Bridge.Figure 4.4: The Type 2 Native-API JDBC driver.Figure 4.5: The Type 3 JDBC-Net driver.Figure 4.6: The Type 4 native-protocol JDBC driver.Figure 4.7: The ODBC Administrator.Figure 4.8: The Create New Data Source screen.Figure 4.9: The ODBC Microsoft Access Setup screen.Figure 4.10: The Movie Catalog database.Chapter 5: Configuring the JSP ServerFigure 5.1: The Jakarta Projects homepage.Figure 5.2: The Tomcat default page.Figure 5.3: JSP Samples page.Figure 5.4: The JSP Date page.Chapter 6: Handling JSP ErrorsFigure 6.1: Output of the testerror.jsp example.Chapter 7: Using the include DirectiveFigure 7.1: Output of the welcome.jsp example.Chapter 8: JavaServer Pages and InheritanceFigure 8.1: The output of SubclassJSP.jsp.Chapter 9: Using the JSPs Implicit ObjectsFigure 9.1: Output from UseRequest.jsp.Figure 9.2: Output from UseSession.jsp.Figure 9.3: Output from GetFromApplication.jsp.Figure 9.4: Output from UseOut.jsp.Chapter 10: Using JSP Standard ActionsFigure 10.1: The output from EmployeeInfo.jsp.Figure 10.2: The output from UseForward.jsp.Figure 10.3: The output from UseJSPPlugin.jsp.Chapter 11: JSPs and JavaBean ScopeFigure 11.1: The output from PageBean.jsp.Figure 11.2: The output from RequestBean1.jsp.Figure 11.3: The output from SessionBean1.jsp.Figure 11.4: The output from ApplicationBean1.jsp.Chapter 12: JSP and HTML FormsFigure 12.1: The output from CreateForm.jsp.Figure 12.2: The output from RetrieveFormData.jsp.Chapter 13: JSP and a Shopping CartFigure 13.1: The output of AddToShoppingCart.jsp.Figure 13.2: The output of ShoppingCart.jsp.Chapter 14: JSP and a JDBC Connection Pool BeanFigure 14.1: Output of the JDBCPooledExample.jsp. - 242 -Chapter 15: JSP and XMLFigure 15.1: The XML document tree structure.Figure 15.2: Output from XMLExample.jsp.Chapter 16: JSP Communication with ServletsFigure 16.1: The steps in a server-side MVC.Figure 16.2: Output from AddToShoppingCartMVC.jsp.Figure 16.3: Output from ShoppingCartMVC.jsp.Chapter 17: JSP and JavaMailFigure 17.1: Output of the MailForm.html.Chapter 18: The javax.servlet.jsp PackageFigure 18.1: javax.servlet.jsp object model.Chapter 19: The javax.servlet.jsp.tagext PackageFigure 19.1: The javax.servlet.jsp.tagext object model.Chapter 20: The javax.servlet PackageFigure 20.1: The javax.servlet object model.Chapter 21: The javax.servlet.http PackageFigure 21.1: The javax.servlet.http object model.List of TablesChapter 1: JSP Overview: The Components of a JavaServer PageTable 1.1: The Attributes for the page DirectiveTable 1.2: The Attributes for the taglib DirectiveTable 1.3: The Attributes for the ActionTable 1.4: The Attribute for the ActionTable 1.5: The Attributes for the ActionTable 1.6: The Attributes for the ActionTable 1.7: The JSP Implicit ObjectsChapter 3: JavaBeans and JSP ConceptsTable 3.1: The Attributes for the ActionTable 3.2: The Attributes for the ActionTable 3.3: The Attributes for the ActionTable 3.4: The scope Values for the ActionChapter 4: JDBC and JSP ConceptsTable 4.1: Titles Table ElementsChapter 5: Configuring the JSP ServerTable 5.1: The PUREJSP Web Application DirectoriesChapter 10: Using JSP Standard ActionsTable 10.1: The Attributes for the ActionTable 10.2: The Attributes for the ActionTable 10.3: The Attribute for the ActionTable 10.4: The Attributes for the ...
Nội dung trích xuất từ tài liệu:
Java Server Pages: A Code-Intensive Premium Reference- P25The getSession() method returns the session from which the listener is being bound or unbound.getSession() has no parameters and throws no exceptions.Returns HttpSessionHttpUtils Classpublic class HttpUtils extends java.util.EventObjectThe HttpUtils class contains a collection of static utility methods that are useful to HTTP servlets. TheHttpUtils class has four methods, described in the following sections.HttpUtils() Methodpublic HttpUtils()The HttpUtils() constructor creates an empty HttpUtility object. HttpUtils() has noparameters, returns no value, and throws no exceptions.parseQueryString() Methodpublic static java.util.Hashtable parseQueryString(java.lang.String s)The parseQueryString() method takes the passed-in query string and parses it into a Hashtable ofkey/value pairs, where the values are arrays of strings. parseQueryString() throws no exceptions.Parameters java.lang.StringReturns java.util.HashtableparsePostData() Methodpublic static java.util.Hashtable parsePostData(int len, ServletInputStream in)The parsePostData() method takes HTML form data that is sent to the server as a POST request,parses it, and returns a Hashtable of key/value pairs. If keys have multiple values, their values arestored as an array of Strings. parsePostData() throws no exceptions.Parameters int ServletInputStreamReturns java.util.HashtablegetRequestURL() Methodpublic static java.lang.StringBuffer getRequestURL(HttpServletRequest request)The getRequestURL() method takes a request object and reconstructs the URL used by the client tomake the request. getRequestURL() throws no exceptions.Parameters HttpServletRequestReturns java.lang.StringBuffer - 241 -List of FiguresChapter 1: JSP Overview: The Components of a JavaServer PageFigure 1.1: Output of the JSP example.Figure 1.2: The steps of a JSP request.Chapter 2: Java ServletsFigure 2.1: Execution of a Java servlet.Figure 2.2: A high-level object model of the servlet framework.Figure 2.3: A GenericServlet request.Figure 2.4: An HttpServlet requestFigure 2.5: The BasicServlet HTML response page.Figure 2.6: The BasicServlet depicted in the framework.Chapter 4: JDBC and JSP ConceptsFigure 4.1: The two-tier JDBC model.Figure 4.2: The three-tier JDBC model.Figure 4.3: The Type 1 JDBC-ODBC Bridge.Figure 4.4: The Type 2 Native-API JDBC driver.Figure 4.5: The Type 3 JDBC-Net driver.Figure 4.6: The Type 4 native-protocol JDBC driver.Figure 4.7: The ODBC Administrator.Figure 4.8: The Create New Data Source screen.Figure 4.9: The ODBC Microsoft Access Setup screen.Figure 4.10: The Movie Catalog database.Chapter 5: Configuring the JSP ServerFigure 5.1: The Jakarta Projects homepage.Figure 5.2: The Tomcat default page.Figure 5.3: JSP Samples page.Figure 5.4: The JSP Date page.Chapter 6: Handling JSP ErrorsFigure 6.1: Output of the testerror.jsp example.Chapter 7: Using the include DirectiveFigure 7.1: Output of the welcome.jsp example.Chapter 8: JavaServer Pages and InheritanceFigure 8.1: The output of SubclassJSP.jsp.Chapter 9: Using the JSPs Implicit ObjectsFigure 9.1: Output from UseRequest.jsp.Figure 9.2: Output from UseSession.jsp.Figure 9.3: Output from GetFromApplication.jsp.Figure 9.4: Output from UseOut.jsp.Chapter 10: Using JSP Standard ActionsFigure 10.1: The output from EmployeeInfo.jsp.Figure 10.2: The output from UseForward.jsp.Figure 10.3: The output from UseJSPPlugin.jsp.Chapter 11: JSPs and JavaBean ScopeFigure 11.1: The output from PageBean.jsp.Figure 11.2: The output from RequestBean1.jsp.Figure 11.3: The output from SessionBean1.jsp.Figure 11.4: The output from ApplicationBean1.jsp.Chapter 12: JSP and HTML FormsFigure 12.1: The output from CreateForm.jsp.Figure 12.2: The output from RetrieveFormData.jsp.Chapter 13: JSP and a Shopping CartFigure 13.1: The output of AddToShoppingCart.jsp.Figure 13.2: The output of ShoppingCart.jsp.Chapter 14: JSP and a JDBC Connection Pool BeanFigure 14.1: Output of the JDBCPooledExample.jsp. - 242 -Chapter 15: JSP and XMLFigure 15.1: The XML document tree structure.Figure 15.2: Output from XMLExample.jsp.Chapter 16: JSP Communication with ServletsFigure 16.1: The steps in a server-side MVC.Figure 16.2: Output from AddToShoppingCartMVC.jsp.Figure 16.3: Output from ShoppingCartMVC.jsp.Chapter 17: JSP and JavaMailFigure 17.1: Output of the MailForm.html.Chapter 18: The javax.servlet.jsp PackageFigure 18.1: javax.servlet.jsp object model.Chapter 19: The javax.servlet.jsp.tagext PackageFigure 19.1: The javax.servlet.jsp.tagext object model.Chapter 20: The javax.servlet PackageFigure 20.1: The javax.servlet object model.Chapter 21: The javax.servlet.http PackageFigure 21.1: The javax.servlet.http object model.List of TablesChapter 1: JSP Overview: The Components of a JavaServer PageTable 1.1: The Attributes for the page DirectiveTable 1.2: The Attributes for the taglib DirectiveTable 1.3: The Attributes for the ActionTable 1.4: The Attribute for the ActionTable 1.5: The Attributes for the ActionTable 1.6: The Attributes for the ActionTable 1.7: The JSP Implicit ObjectsChapter 3: JavaBeans and JSP ConceptsTable 3.1: The Attributes for the ActionTable 3.2: The Attributes for the ActionTable 3.3: The Attributes for the ActionTable 3.4: The scope Values for the ActionChapter 4: JDBC and JSP ConceptsTable 4.1: Titles Table ElementsChapter 5: Configuring the JSP ServerTable 5.1: The PUREJSP Web Application DirectoriesChapter 10: Using JSP Standard ActionsTable 10.1: The Attributes for the ActionTable 10.2: The Attributes for the ActionTable 10.3: The Attribute for the ActionTable 10.4: The Attributes for the ...
Tìm kiếm theo từ khóa liên quan:
nhập môn lập trình kỹ thuật lập trình lập trình flash lập trình web ngôn ngữ html lập trình hướng đối tượngGợi ý tài liệu liên quan:
-
Đề cương chi tiết học phần Cấu trúc dữ liệu và giải thuật (Data structures and algorithms)
10 trang 317 0 0 -
Giáo trình Lập trình hướng đối tượng: Phần 2
154 trang 275 0 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 265 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 207 0 0 -
101 trang 200 1 0
-
Giới thiệu môn học Ngôn ngữ lập trình C++
5 trang 194 0 0 -
Bài giảng Nhập môn về lập trình - Chương 1: Giới thiệu về máy tính và lập trình
30 trang 166 0 0 -
Luận văn: Nghiên cứu kỹ thuật giấu tin trong ảnh Gif
33 trang 153 0 0 -
Luận văn tốt nghiệp Công nghệ thông tin: Xây dựng website bán hàng nông sản
67 trang 141 0 0 -
Giáo trình nhập môn lập trình - Phần 22
48 trang 138 0 0