Résumé
The first section discusses J2EE in more depth, with special emphasis on how and where JSP and EJB fit in. The second section covers JavaServer Pages including numerous JSP examples. The book provides the JSP's for the main application developed and dissected, a hotel booking application. The final part covers Enterprise JavaBeans. The bulk of this section is creating and analyzing EJBs to work with the JSPs developed earlier in the book. By the end of the book, the hotel booking application is complete.
This Unlimited Edition stays up to date long after other publications. A companion Web site includes all the code and examples from the book, and is updated to include new chapters, programs, and other related material.
Table of Contents
Preface
Part IJ2EE Overview
- Chapter 1 Enterprise Computing Concepts
- The Enterprise Computing Environment
- Developing Applications in Layers
- Two-Tier Architectures in Brief
- N-tier Architectures in Brief
- Objects and Components
- Server Component Architecture
- What About Web Applications?
- JSP and EJB with the J2EE Specification
- Summary
- Chapter 2 J2EE Component APIs
- J2EE API Classifications
- J2EE APIs
- JavaServer Pages
- Java Servlets
- Enterprise JavaBeans
- Java Messaging Services
- Java Transaction API
- Java Transaction Services
- JavaMail
- Java Naming and Directory Interface
- Java Database Connectivity
- Remote Method Invocation and IIOP
- Java Interface Definition Language
- J2EE Connector
- Summary
Part II JavaServer Pages
- Chapter 3 A First Look at JavaServer Pages
- JavaServer Pages
- Creating and Using JSP Pages
- The Relationship Between JSP Pages and Java Servlets
- A Typical JSP Execution
- Examining Some JSP Pages
- A Simple JSP Page: Your Name Here and ereH emaN ruoY
- JSP Versus the Competition
- Separating Logic from Presentation
- The Strength of Java
- JSP Versus Java Servlets
- JSP Versus Active Server Pages
- JSPs Versus Client-Side Scripting
- Disadvantages of Using JSP
- Summary
- Chapter 4 The Elements of a JSP Page
- Coding Static Page Content in JSP Pages
- Programmable JSP Elements
- JSP Directives
- JSP Scripting Elements
- Coding JSP Standard Actions
- The param and params Action
- The forward Action
- The getProperty and setProperty Actions
- The include Action
- The plugin and fallback Actions
- The useBean Action
- JSP Implicit Objects
- Summary
- Chapter 5 JSP Web Sessions
- Understanding Sessions
- The Session Life Cycle
- Should All Your JSPs Participate in Sessions?
- Sharing Data with Sessions
- Tending to Changes in the Session Object
- Summary of Session Methods
- Summary
- Chapter 6 JSP and JavaBeans
- A JavaBeans Primer
- JavaBeans Defined
- Coding JavaBeans
- Creating a Simple Bean
- Communicating with Other Beans
- Using Beans in a JSP Page
- Variations on a Theme
- Collecting Values of Bean Properties from Web Pages
- Displaying and Using Values of Bean Properties in JSP Pages
- Using JavaBeans in Multiple JSPs
- Trying with page Scope
- Trying with application Scope
- Other scope Attribute Values
- Bean Usage Odds and Ends
- Summary
- Chapter 7 JSP Tag Extensions
- Tag Extensions
- Using Tags Versus Using JavaBeans
- Tag Library Classes, Interfaces, and Components
- Using the taglib Directive
- Examining the Tag Interface
- Creating a Tag Library Descriptor File
- Implementing a Custom Tag
- Implementing the Empty Tag Without Attributes
- Implementing the Empty Tag with Attributes
- Implementing the Tag with a Body
- Optionally Processing the Tag Body
- Selectively Processing the Tag Body
- Repetitively Processing the Tag Body
- Writing an Example Nested Tag
- The case Statement Tag
- The when Statement Tag
- The otherwise Statement Tag
- Summary
- Chapter 8 JSPs and Servlets Revisited
- Examining the Servlet Life Cycle
- Writing the Minimal Servlet
- Writing a Minimal JSP-Generated Servlet
- Examining the init and jspInit Methods
- Examining the destroy and jspDestroy Methods
- Examining the service and _jspService Methods
- Using the JSP/Servlet Environment
- Useful Servlet Environment Features
- Using JSPs with Servlets
- Forwarding Requests from Servlets
- Summary
- Chapter 9 JSP Errors and Debugging
- Examining a JSP Error
- Tracking JSP Errors
- The errorPage Page Directive Attribute
- The isErrorPage Page Directive Attribute
- The exception Implicit Variable
- JSP Translation Errors
- JSP Runtime Errors
- JSP Exception Classes
- JSP Debugging Techniques
- Remembering Good Coding Practices
- Debugging Concurrency Issues
- Summary
- Chapter 10 The "Make Money" Brokerage Application
- The "Make Money" Application
- Implemented Application Features
- The Application Data Defined
- The Client Scenario
- Logging on to the "Make Money" Application
- Checking the Account ID/Password Combination
- Creating the "Make Money" JavaBeans
- Examining the showcustoptions.jsp Page
- Examining viewhistory.jsp
- Examining the AccountHistory Class
- Revisiting viewhistory.jsp
- Summary
Part IIIEnterprise JavaBeans
- Chapter 11 A First Look at EJB
- Understanding EJBs
- Goals of the EJB Architecture
- Examining EJB Release 1.1
- Examining the EJB and Its Environment
- Essential Enterprise Bean Properties
- Examining EJB Roles
- Summary
- Chapter 12 The Elements of an EJB
- Using the Enterprise Bean
- EJB Components: The Short Story
- Examining the EJB Interfaces
- Understanding the Home Interface
- Understanding the Remote Interface
- The EJB Object
- About the Home and EJB Object
- The Bean Class
- Using Entity Beans
- Using Session Beans
- Comparing Entity Beans and Session Beans
- Using Session and Entity Beans
- The Primary Key Class
- New with EJB 2.0: Message-Driven Beans
- EJB Deployment Descriptors
- Summary
- Chapter 13 EJB Contexts and Containers
- Exploring the EJB Context
- Gaining Access to a Context Object
- Using EJBContext Methods
- Understanding the EJB Container
- The Container's Responsibility
- The Required EJB Container Runtime Environment
- Summary
- Chapter 14 EJB Session Beans
- Understanding Session Beans
- Session Bean Life Cycle
- One Client, One Thread, One Session Bean, One Time
- Using Stateless Session Beans
- Characteristics of Stateless Session Beans
- Life Cycle of Stateless Session Beans
- Using Stateful Session Beans
- Characteristics of Stateful Session Beans
- Life Cycle of Stateful Session Beans
- Using the javax.ejb.SessionBean Interface
- ejbActivate
- ejbPassivate
- ejbRemove
- setSessionContext
- ejbCreate
- The javax.ejb.SessionContext Interface
- getEJBObject
- Creating a Stateless Session Bean
- Coding the Remote Interface
- Coding the home Interface
- Coding the Bean Class
- Coding the Deployment Descriptor
- Code for a Sample Client
- Using JNDI
- Creating a Stateful Session Bean
- Coding the remote Interface
- Coding the home Interface
- Coding the Bean Class
- Coding the Deployment Descriptor
- Code for a Sample Client
- Summary
- Chapter 15 EJB Entity Beans
- Examining Entity Bean Characteristics
- Using Entity Beans for Persistent Data
- Accessing Entity Beans with a Primary Key
- Looking at the Entity Bean Life Cycle
- Examining Entity Bean Client Scenarios
- Data Persistence
- Container-Managed Persistence Entity Beans
- Bean-Managed Persistence Entity Beans
- Using ejbRemove
- Using setEntityContext
- Using unsetEntityContext
- Using ejbPassivate and ejbActivate
- Using ejbStore and ejbLoad
- Other Methods You Would Typically Implement When Coding Entity Beans
- Coding Entity Bean Creation Methods
- Coding create Methods
- Coding ejbCreate Methods for BMP Beans
- Coding ejbPostCreate Methods for BMP Beans
- Coding ejbCreate and ejbPostCreate Methods for CMP Beans
- Coding finder Methods in the home Interface and ejbFind Methods in the Bean Class
- The Primary Key Class
- Looking at the Life Cycle of an Entity Bean
- Examining the Possible Entity Bean States
- Instantiating an Entity Bean
- Moving an Entity Bean to the Pool
- Transitioning to the Ready State
- Returning to the Pooled State
- Killing an Entity Bean
- Implementing an Entity Bean
- Creating the remote Interface
- Creating the Primary Key Class
- Implementing the Bean Class as a BMP Bean
- Implementing the Bean Class as a CMP Bean
- Writing the Deployment Descriptor for a CMP bean
- Summary
- Chapter 16 EJB Security
- System Security Overview
- Reviewing Java Language Security Features
- Using the JVM Security Features
- Looking at the Java Security Packages
- Security Features Available in the java.lang Package
- Securing EJB Applications
- Identifying and Authorizing Clients
- Managing Access to Resources in EJBs
- EJB Players and Security
- The Enterprise Bean Provider
- The Application Assembler
- The Deployer
- The EJB Container Provider and Server Provider
- The System Administrator
- Securing the Rest of Your Environment
- Summary
- Chapter 17 EJB and Transaction Management
- Transaction Properties
- Understanding Transaction Terminology
- Learning the ACID Properties
- Differentiating Transaction States
- Learning Some Transaction Concepts
- Supporting Transactions in EJBs
- Managing EJB Transactions
- Isolating Transactions at Different Levels
- Isolation Conditions
- Summary
- Chapter 18 Creating EJB Clients
- Examining the Rules of EJB Clients
- The Client Never Talks to the Bean or to the Container
- The Client Acquires References to EJB Objects Through a home Object
- The Client Does Not Know Where the Bean Lives
- The Client Does Not Know How the Bean Is Implemented
- The Client Accesses Session Beans Much as It Does Entity Beans
- The Client May Be One of Several Java Objects
- Coding an EJB Client
- Obtaining a Reference to the EJB Object
- Creating an EJB Object
- Summary
- Chapter 19 The Proposed EJB 2.0 Specification
- EJB 1.1 Versus EJB 2.0: The Major Changes
- The MessageDrivenBean Type
- The New Container-Managed Persistence Model
- Using the EJB Query Language
- Additional Methods in home Interfaces
- Summary
- Chapter 20 Integrating JSPs and EJBs
- The "Make Money" Brokerage Application Revisited
- Using JSP Pages as EJB Clients
- Coding the JSP Page That Implements an EJB Client
- The Tag Library Code
- The Enterprise Bean
- Summary
Appendix AThe JSP API- The JSP API
- The Class and Interface Hierarchies for the javax.servlet.jsp Package
- The Class and Inheritance Hierarchies for the javax.servlet.jsp.tagext Package
- The javax.servlet.jsp Package
- The javax.servlet.jsp.tagext Package
- Interfaces and Classes Added to JSP Release 1.2
Appendix B The EJB API- The EJB API
- Class and Inheritance Hierarchies for Package javax.ejb
- Interface Hierarchy
- The javax.ejb.spi Package and Its Interface
- The javax.ejb Package
Appendix C Configuring the Tomcat Web Server- The Tomcat Web Server
- Downloading Tomcat Release 3.2
- Installing Tomcat
- Setting Your Tomcat Environment Variables
- Testing Your Tomcat Installation
- Displaying Web Pages in Tomcat
- Tomcat Directories and JSP Processing
- More Information on Tomcat
- Summary
Appendix D XML Overview- XML Features
- A Simple XML Document
- XML Document Components
- Rules for Well-Formed XML Documents
- Document Type Definitions
- A Simple DTD
- Element DTD Declarations
- DTD Entities
- Related XML Technologies
- Summary
Caractéristiques techniques
PAPIER | |
Éditeur(s) | IDG |
Auteur(s) | Lou Marco |
Parution | 23/10/2001 |
Nb. de pages | 452 |
Format | 18,7 x 23,4 |
Couverture | Broché |
Poids | 741g |
Intérieur | Noir et Blanc |
EAN13 | 9780764548024 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse
- Informatique Développement d'applications Conception et développement web Serveurs web et serveurs d'application
- Informatique Développement d'applications Conception et développement web Serveurs web et serveurs d'application Tomcat
- Informatique Développement d'applications Conception et développement web Serveurs web et serveurs d'application JBoss
- Informatique Développement d'applications Langages Java - J2EE JavaServer Pages (JSP)
- Informatique Développement d'applications Langages Java - J2EE EJB
- Informatique Développement d'applications Modélisation et génie logiciel Design patterns