1. Trang chủ
  2. » Công Nghệ Thông Tin

Java server pages

629 57 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 629
Dung lượng 3,34 MB

Nội dung

This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] • • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic JavaServer Pages, 3rd Edition By Hans Bergsten Publisher: O'Reilly Pub Date: December 2003 ISBN: 0-596-00563-6 Pages: 764 JavaServer Pages, Third Edition is completely revised and updated to cover the substantial changes in the 2.0 version of the JSP specification It also includes detailed coverage of the major revisions to the JSP Standard Tag Library (JSTL) specification Combining plenty of practical advice with detailed coverage of JSP syntax and features and clear, useful examples, JavaServer Pages, Third Edition demonstrates how to embed server-side Java into Web pages, while also covering important topics such as JavaBeans, Enterprise JavaBeans (EJB), and JDBC database access [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] • • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic JavaServer Pages, 3rd Edition By Hans Bergsten Publisher: O'Reilly Pub Date: December 2003 ISBN: 0-596-00563-6 Pages: 764 Copyright Preface What's in This Book Readers of the Second Edition Audience Organization About the Examples Conventions Used in This Book How to Contact Us Acknowledgments for First Edition Acknowledgments for Second Edition Acknowledgments for Third Edition Part I: JSP Application Basics Chapter Introducing JavaServer Pages Section 1.1 What Is JavaServer Pages? Section 1.2 Why Use JSP? Section 1.3 What You Need to Get Started Chapter HTTP and Servlet Basics Section 2.1 The HTTP Request/Response Model Section 2.2 Servlets Chapter JSP Overview Section 3.1 The Problem with Servlets Section 3.2 The Anatomy of a JSP Page This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Section 3.3 JSP Processing Section 3.4 JSP Application Design with MVC Chapter Setting Up the JSP Environment Section 4.1 Installing the Java Software Development Kit Section 4.2 Installing the Tomcat Server Section 4.3 Testing Tomcat Section 4.4 Installing the Book Examples Section 4.5 Example Web Application Overview Part II: JSP Application Development Chapter Generating Dynamic Content Section 5.1 Creating a JSP Page Section 5.2 Installing a JSP Page Section 5.3 Running a JSP Page Section 5.4 Using JSP Directive Elements Section 5.5 Using Template Text Section 5.6 Using JSP Action Elements Chapter Using JavaBeans Components in JSP Pages Section 6.1 What Is a Bean? Section 6.2 Declaring a Bean in a JSP Page Section 6.3 Reading Bean Properties Section 6.4 Setting Bean Properties Chapter Using Custom Tag Libraries and the JSP Standard Tag Library Section 7.1 What Is a Custom Tag Library? Section 7.2 Installing a Custom Tag Library Section 7.3 Declaring a Custom Tag Library Section 7.4 Using Actions from a Tag Library Chapter Processing Input and Output Section 8.1 Reading Request Parameter Values Section 8.2 Validating User Input Section 8.3 Formatting HTML Output Chapter Error Handling and Debugging Section 9.1 Dealing with Syntax Errors Section 9.2 Debugging a JSP Application Section 9.3 Dealing with Runtime Errors Chapter 10 Sharing Data Between JSP Pages, Requests, and Users Section 10.1 Passing Control and Data Between Pages Section 10.2 Sharing Session and Application Data Section 10.3 Online Shopping Section 10.4 Memory Usage Considerations Chapter 11 Developing Custom Tag Libraries as Tag Files Section 11.1 Creating and Using a Tag File Section 11.2 Accessing Attribute Values Section 11.3 Processing the Action Body Section 11.4 Processing Fragment Attributes Section 11.5 Exposing Data to the Calling Page Through Variables Section 11.6 Aborting the Page Processing Section 11.7 Packaging Tag Files for Easy Reuse Chapter 12 Accessing a Database Section 12.1 Accessing a Database from a JSP Page Section 12.2 Validating Complex Input Without a Bean Section 12.3 Using Transactions Section 12.4 Application-Specific Database Actions This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Chapter 13 Authentication and Personalization Section 13.1 Container-Provided Authentication Section 13.2 Application-Controlled Authentication Section 13.3 Other Security Concerns Chapter 14 Internationalization Section 14.1 How Java Supports Internationalization and Localization Section 14.2 Generating Localized Output Section 14.3 A Brief History of Bits Section 14.4 Handling Localized Input Chapter 15 Working with XML Data Section 15.1 Generating an XML Response Section 15.2 Transforming XML into HTML Section 15.3 Transforming XML into a Device-Dependent Format Section 15.4 Processing XML Data Chapter 16 Using Scripting Elements Section 16.1 Using page Directive Scripting Attributes Section 16.2 Implicit JSP Scripting Objects Section 16.3 Using Scriptlets Section 16.4 Using Expressions Section 16.5 Using Declarations Section 16.6 Mixing Action Elements and Scripting Elements Section 16.7 Dealing with Scripting Syntax Errors Chapter 17 Bits and Pieces Section 17.1 Buffering Section 17.2 Including Page Segments Section 17.3 Global Configuration Options Section 17.4 Mixing Client-Side and Server-Side Code Section 17.5 Precompiling JSP Pages Section 17.6 Preventing Caching of JSP Pages Section 17.7 Writing JSP Pages as XML Documents Section 17.8 How URIs Are Interpreted Part III: JSP in J2EE and JSP Component Development Chapter 18 Web Application Models Section 18.1 The Java Enterprise Edition Model Section 18.2 The MVC Design Model Section 18.3 Scalability Chapter 19 Combining JSP and Servlets Section 19.1 Servlets, Filters, and Listeners Section 19.2 Picking the Right Component Type for Each Task Section 19.3 Initializing Shared Resources Using a Listener Section 19.4 Access Control Using a Filter Section 19.5 Centralized Request Processing Using a Servlet Section 19.6 Using a Common JSP Error Page Chapter 20 Developing JavaBeans Components for JSP Section 20.1 Beans as JSP Components Section 20.2 JSP Bean Examples Section 20.3 Unexpected Behavior Chapter 21 Developing Custom Tag Libraries Using Java Section 21.1 Developing Simple Tag Handlers Section 21.2 Developing Classic Tag Handlers Section 21.3 Developing Tag Library Functions Section 21.4 Creating the Tag Library Descriptor This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Section 21.5 Packaging and Installing a Tag Library Chapter 22 Advanced Custom Tag Library Features Section 22.1 Developing Cooperating Actions Section 22.2 Validating Syntax Section 22.3 Using a Listener in a Tag Library Section 22.4 Dynamic Attribute Values and Types Chapter 23 Integrating Custom Code with JSTL Section 23.1 Setting and Using Configuration Variables Section 23.2 Integrating Custom Conditional Actions Section 23.3 Integrating Custom Iteration Actions Section 23.4 Integrating Custom I18N Actions Section 23.5 Integrating Custom Database Actions Section 23.6 Using JSTL Tag Library Validators Chapter 24 Database Access Strategies Section 24.1 JDBC Basics Section 24.2 Using Connections and Connection Pools Section 24.3 Making a Connection Pool Available to Application Components Section 24.4 Using a Generic Database Bean Section 24.5 Developing Application-Specific Database Components Part IV: Appendixes Appendix A JSP Elements Reference Section A.1 Directive Elements Section A.2 Scripting Elements Section A.3 Action Elements Section A.4 Custom actions Section A.5 Comments Section A.6 Escape Characters Appendix B JSTL Actions and API Reference Section B.1 JSTL Library URIs and Default Prefixes Section B.2 Core Library Actions Section B.3 Internationalization and Formatting Actions Section B.4 Database Access Actions Section B.5 XML Processing Actions Section B.6 EL Functions Section B.7 Support and Utility Types Section B.8 Configuration Settings Appendix C JSP Expression Language Reference Section C.1 Syntax Section C.2 Variables Section C.3 Data Types Section C.4 Expressions and Operators Appendix D JSP API Reference Section D.1 Implicit Variables Section D.2 Other Servlet Types Accessible Through Implicit Variables Section D.3 Tag Handler Types Section D.4 Translation Time Types Section D.5 Other JSP Types Section D.6 Expression Language Types Appendix E Book Example Custom Actions and API Reference Section E.1 Generic Custom Actions Section E.2 Generic Utility Classes Appendix F Web Application Structure and Deployment Descriptor Reference This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Section F.1 Web Application File Structure Section F.2 Web Application Deployment Descriptor Section F.3 Creating a WAR File Colophon Index [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] Copyright Copyright © 2004, 2002, 2001 O'Reilly & Associates, Inc Printed in the United States of America Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O'Reilly & Associates books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (http://safari.oreilly.com) For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc The Java Series, JavaServer Pages, Third Edition, the image of a grey wolf, and related trade dress are trademarks of O'Reilly & Associates, Inc Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc., in the United States and other countries O'Reilly & Associates, Inc., is independent of Sun Microsystems Openwave, the Openwave logo, and UP.SDK are trademarks of Openwave Systems Inc All rights reserved Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O'Reilly & Associates, Inc was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] Preface JavaServer Pages™ (JSP) is a technology for web application development that has received a great deal of attention since it was first announced in 1999 Since then, it has gone through three revisions This book covers the 2.0 version of the specification Why is JSP so exciting? One reason is that JSP is Java-based, and Java™ is well suited for enterprise computing In fact, JSP is a key part of the Java 2™ Enterprise Edition (J2EE) platform and can take advantage of the many Java Enterprise™ libraries, such as JDBC™, JNDI™, and Enterprise JavaBeans™ Another reason is that JSP supports a powerful model for developing web applications that separates presentation from processing Understanding why this is so important requires a bit of a history lesson In the early days of the Web, the only tool for developing dynamic web content was the Common Gateway Interface (CGI) CGI outlined how a web server made user input available to a program, as well as how the program provided the web server with dynamically generated content to send back CGI scripts were typically written in Perl (In fact, Perl/CGI scripts still drive numerous dynamic web sites.) However, CGI is not an efficient solution For every request, the web server has to create a new operating-system process, load a Perl interpreter and the Perl script, execute the script, and then dispose of it when it's done To provide a more efficient solution, various alternatives to CGI have been added to programmers' toolboxes over the last few years: FastCGI, for example, runs each CGI program in an external permanent process (or a pool of processes) In addition, mod_perl for Apache, NSAPI for Netscape, and ISAPI for Microsoft's IIS all run server-side programs in the same process as the web server itself While these solutions offer better performance and scalability, each one is supported only by a subset of the popular web servers The Java Servlet API, introduced in early 1997, provides a solution to the portability issue However, all these technologies suffer from a common problem: HTML code embedded inside programs If you've ever looked at the code for a servlet, you've probably seen endless calls to out.println( ) that contain scores of HTML tags For the individual developer working on a simple web site, this approach may work fine, but it makes it difficult for people with different skills to work together to develop a web application This embedded HTML code is becoming a significant problem As web sites become increasingly complex and more critical to an organization's success, the appearance and usability of the web interface becomes paramount New client technologies, such as client-side scripts and DHTML, are used to develop more responsive and interactive user interfaces, stylesheets can make it easier to globally change fonts and colors, and images make the interface more appealing At the same time, server-side code is getting more complex, and the demands for reliability, performance, and fault tolerance are increasing The increasing complexity of web applications requires a development model that allows people with different skills to cooperate efficiently JSP provides just such a development model, allowing web page authors with skills in areas such as client-side technologies and usability to work in tandem with programmers who are experienced in server-side technologies, such as multithreading, resource pooling, databases, and caching While there are other technologies, such as ASP, PHP, and ColdFusion, that support similar development models, none offer all the advantages of JSP [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] What's in This Book This edition of the book covers Version 2.0 of the JSP specification, which was released late 2003 It also covers the related JSP Standard Tag Library (JSTL) specification, Version 1.1, also released late 2003 You will learn how to use all the JSP standard elements and features, including elements for accessing JavaBeans components; separating the processing over multiple pages to increase reusability and simplify maintenance; and sharing information between pages, requests, and users You will also learn how to use JSTL for tasks such as conditional processing, integration of database data, internationalization, and XML processing, as well as how to develop your own custom components for tasks not covered by the standard components The examples in this book guide you through solutions to common JSP design problems, from basic issues, such as retrieving and validating user input, to more advanced areas, such as developing a database-driven site, authenticating users, providing personalized content, caching data for better performance, and implementing internationalization The last part of the book describes how you can combine JSP with other Java technologies; in particular, I describe the combination of JSP and servlets using the popular Apache Struts framework, and provide an overview of how JSP fits into the larger scope of J2EE [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] Readers of the Second Edition If you've read the second edition of JavaServer Pages, you'll notice that, in this edition, even more of the custom components used in the previous edition have been replaced in favor of the equivalent standard components from JSTL —a specification I've been lucky enough to contribute to and help shape the standard based on many of the ideas explored in the first and second editions You'll also notice that all the chapters have been modified (some more than others) to cover the new features in the latest versions of the JSP and JSTL specifications A brand new chapter has been added to describe how to develop custom tag libraries using the new tag file format, and the chapter about custom library development using Java has been substantially expanded to cover the new, simplified tag handler API as well as the new mechanism for including Expression Language functions in a tag library All chapters have also been updated to cover the features and clarifications added in the Servlet 2.4 specification on which JSP 2.0 is based Here's a brief summary of the primary changes in all the specifications covered in this book: Incorporation of the Expression Language (EL), first introduced by the JSTL specification in the JSP specification (making it available to all standard and custom components as well as in template text) The EL extended with a function call mechanism and a set of common functions added to JST Addition of the ability to develop custom tag libraries as tag files (text files with JSP elements) as well as a new, simplified tag handler Java API, and various new tag library features such as support for a dynamic attribute list and executable fragment attributes More flexible rules for JSP pages written as XML documents, and support for the JSP directives and scripting elements of XML syntax in regular JSP pages New JSP standard elements, primarily to allow more flexible attribute value assignments and to support the new tag file format and XML format enhancements Access to more information in a JSP error page and adjustment of the attribute names to match the Servlet specification Stricter container requirements to improve syntax error reporting and debugging support for JSP pages XML Schema-based deployment descriptors for all specifications with new configuration options, including automatic include of page segments, page encoding specification, scripting element disabling, and more for JSP Addition of a new request listener component type and filters that can be applied to internal requests Deprecation of the single thread model for both servlets and JSP New JSTL tag library URIs and a few attribute name changes for the XML library [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] package names, JavaBeans packages, importing page authors page directives 2nd attributes error page definitions scripting attributes 2nd tag files and page fragments, including page hit counters, scope and data sharing page processing, aborting page scope tag files and page variable page-relative paths 2nd URIs PageContext instance pageContext variable PageData class pageEncoding attribute param variable and parameters URL encoding, special characters values, capturing with beans values, validating in databases ParamTag class, parent-child cooperation example paramValues variable 2nd parent-child cooperation between actions parsing dates, localization numbers, localization passwords, cookies and PATH environment variable paths context paths context-relative paths page-relative paths perform( ) method, authentication action class PermittedTaglibsTLV class persistence, JavaBeans personalization personalized content NewsBean and PHP PKC (Public Key Certificate) plug-ins poll.jsp page (internationalization application) 2nd port 80 POST method parameters, valid sessions updateprofile.jsp page POST rmethod GET method, compared to This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com PostgreSQL Pragma header precompilation precompiling JSP pages prepare( ) method, LoopTagSupport class PreparedStatement, JDBC presentation primary keys process.jsp page (localization example) process_nw.jsp page (localization example) processActionForward( ) method processPath( ) method ProductBean (online shopping example) Project Billboard application access control common error page component types Controller servlet servlets, centralized request processing shared resources, initializing properties JavaBeans 2nd getter and setter methods property accessor operator property editors PropertyResourceBundle class PureLoad PUT method [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] query results [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] redirection compared to forwarding relational databases [See also databases]2nd primary keys relative paths, URIs release builds release( ) method request messages request parameters getParameter( ) method getParameterValues( ) method online shopping example request processing centralized, servlets dispatching to action class servlets mapping to Struts 2nd 3rd request processing page, online shopping example request processing phase request property request scope request variable 2nd request-time attribute values 2nd 3rd request/response model, HTTP RequestDispatcher class requests 2nd methods parameters reading resource resource bundle files ResourceBundle class resources localization shared, initializing tag handlers, retaining web resources, authentication response headers response variable 2nd responses 2nd generating XML, generating Result interface Result properties, rowCount result.jsp page (internationalization application) ResultSupport class rowCount property rtexprvalue runtime errors [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] scalability scope memory usage considerations variables connection pools and scoped variables accessing compared to scripting variables ScriptFreeTLV class scripting code, scoped variable access syntax error examples syntax error handling scripting elements 2nd 3rd declarations 2nd expressions 2nd page directive attributes scriptlets 2nd types of scripting objects scripting variables compared to scoped variables scriptlets 2nd implementing search.html (database application) search.html page (employee register application) searching databases 2nd security access control, filters constraints, definition database access risks validation and SELECT statements (SQL) sendCookie( ) method, CookieUtils class 2nd sendError( ) method 2nd sendRedirect( ) method server-relative paths, converting to context-relative paths server-side code, mixing with client side server-side data in code servers, Controller Servlet API servlet contexts Servlet interface servlets 2nd advantages centralized request processing compiling configuration variables, setting context paths data sharing among application components filters Hello World installing JSP methods JSP page implementation class This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com lifecycle listeners MVC design model applications, using in problems with request processing dispatching to action classes mapping to Struts requests, reading responses, generating servlet containers servlet contexts Struts implementing action classes request processing template engines thread safety typical servlet class session beans session events, JavaBeans session IDs, URL rewriting session scope 2nd memory usage considerations page hit counters session tracking, multiple browser windows session variable 2nd sessions starting and stopping state, tracking terminating valid, checking for setBodyContent( ) method setContentType( ) method setDateHeader( ) method setLoginCookies( ) method setPageContext( ) method Tag interface setParent( ) method setPath( ) method setter methods JavaBeans JDBC setting cookies setValues( ) method sharing data action among application components application scope session scope SimpleLoopTag class SimpleTag interface SimpleTagSupport class single-value properties, JavaBeans SkipPageException class special characters URL encoding SQL (Structured Query Language) INSERT statement processing, classes and interfaces This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com SELECT statement LIKE operator string literals transaction processing wildcard characters SQLCommandBean class 2nd SQLCommandBean property setter methods SQLException SQLExecutionTag interface SSL (Secure Socket Layer) SSL-based session tracking standalone servers standard action elements standard actions startRow attribute stateless protocols statement pooling, JDBC statements JDBC static content, include files store.jsp page (employee register application) 2nd stored procedures, CallableStatement, JDBC StringFormat class strings literals, SQL statements nonces Struts action classes, implementing advantages application requests dispatching to action class mapping configuration file JAR file for Struts classes request processing syntax validating, custom actions syntax errors 2nd [See also Tomcat, error reporting] EL syntax errors element syntax errors scripting handling [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] tables employee register application HTML, creating tag directive tag extension mechanism tag files 2nd accessing attribute values using body-content attribute custom actions for body content transformation data, exposure through variables directory JAR files, packaging in JSP pages, declaration in packaging for reuse undeclared attributes, using web application structure, placement in tag handlers classic tag handler exception handling state, resetting 2nd tag handler classes 2nd conditional actions implementing lifecycle optional attributes, default values for output stream handling resources, retaining tag handler types TLD, creating Tag interface 2nd methods 2nd tag libraries 2nd configuration variables, setting generic validators listeners, bundling tag scope TagAdapter class TagAttributeInfo instance TagData instance tagdir attribute TagExtraInfo class custom action syntax, validating declaring variables TagFileInfo class TagInfo instance taglib directives 2nd 3rd 4th internationalization application missing directives TagLibraryInfo instance TagLibraryValidator class 2nd custom action syntax, validating taglibs Jakarta Taglibs project TagSupport class 2nd This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com TagVariableInfo instance target page, MVC model template engines template text 2nd thread safety, servlets time and date formatting databases internationalization time zone settings 2nd 3rd TIMESTAMP columns, databases TLDs (Tag Library Descriptors) 2nd 3rd creating custom action syntax, validating elements JAR files multiple libraries PermittedTaglibsTLV validator ScriptFreeTLV validator source code Version 1.1 compared to Version 1.2 Tomcat authentication and binary distribution, download web site error reporting EL syntax missing curly braces missing end curly brace misspelled property names syntax errors implementation class storage installation directories JspC tool Server Configuration Reference server installation Unix, Linux and Mac OS X Windows testing proxy settings, adjustment Version version builds TRACE method transactions translation phase translation time types TryCatchFinally interface 2nd 3rd methods typos [See syntax errors] [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] Unicode Uniform Resource Identifiers [See URIs] Uniform Resource Names [See URNs] Unix PATH environment variable Tomcat server installation updateprofile.jsp page 2nd updating databases URIs (Uniform Resource Identifiers) access control with interpreting URLs (Uniform Resource Identifiers) URLs (Uniform Resource Locators) encoding of special characters encoding, session tracking JDBC drivers Uniform Resource Locators [See URLs] URL rewriting multiple browser windows session IDs URL-encoding URNs (Uniform Resource Names) 2nd user authentication action form-based authentication HTTP basic authentication 2nd HTTPS client authentication list.jsp code personalized content User Info application, parts of user input databases, validating JavaBeans, capture using localization non-Western European input handling validating validation using JSTL actions using JavaBeans security and User-Agent headers userinfoinput.jsp page usernames, cookies and utility beans 2nd [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] valid sessions, checking for validate.jsp page (employee registration application) 2nd validation database input user input validation object validation page ValidationMessage instance validators, tag libraries value beans 2nd valueBound( ) method valueUnbound( ) method var attribute, accessing databases variable directive VariableInfo instance VariableResolver interface variables application CLASSPATH environment, compiling servlets configuration internationalization setting declaring TagExtraInfo class exception export of data to pages using implicit variables [See implicit variables] instances, thread safety JavaBeans, accessing out pageContext request response scope variables, connection pools scripting, cooperative actions session Velocity template engine VeriSign View Source command, browsers Visual Age for Java [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] WARs (Web Application Archives) 2nd 3rd creating files Web Application Archives [See WARs] web applications 2nd access control 2nd centralized request processing common error pages components, sharing data among context paths 2nd databases and databases, custom actions deployment descriptors example design models scalability design, importance of directory structure tag files placement in distributable marking as employee register database tables file structure HTTP and initializing shared resources internationalization invoking Controller servlets J2EE (Java Enterprise Edition) design model JSP, developing with load-testing MVC (Model-View-Controller) design model 2nd using EJB, servlets, and JSP using JSP using servlets and JSP Project Billboard, selecting component types security separating functions of servlet context and Tomcat, installation using typical structure URI path prefix XML and XML application XSLT and web containers 2nd 3rd differences between DSNs and error reporting by example code and inclusion in IDEs Java Virtual Machines and JNDI support JSTL support load balancing modules This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com locale information and the pageContext object memory demands of servlet lifecycles and tag files and tiers and web resources, access authentication web sites charsets (ISO-8859) country codes (ISO 3166) J2EE Blueprint papers JDBC drivers language codes (ISO 639) Unicode WEB-INF directory 2nd case sensitivity web.xml Windows PATH environment variable, setting Tomcat server installation "Out of environment space" message WML (Wireless Markup Language) WML phone book JSP page code wrapper classes [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] XML (Extensible Markup Language) applications authentication and caching and data processing declarations device-dependent format transformation documents, writing JSP pages as DTDs responses, generating transforming to HTML XPath expressions XSL (Extensible Stylesheet Language) XSLT (Extensible Stylesheet Language Transformations) HTML table generation [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Brought to You by Like the book? Buy it! ... Microsystems added a new element to the collection of Enterprise Java tools: JavaServer Pages (JSP) JavaServer Pages are built on top of Java servlets and designed to increase the efficiency in which... offered by JavaServer Pages This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com and portability offered by JavaServer Pages 1.2.5.1 Active Server Pages (ASP)... Registries), JAX-RPC (Java API for XML-based RPC), and SAAJ (SOAP with Attachments API for Java) JavaMail This means that you can easily integrate JavaServer Pages with your existing Java Enterprise

Ngày đăng: 26/03/2019, 11:15