Selected Object 5. Communicating Validation Messages 5. View Transition Support 5. Collapsing Object Graphs 5. Summary 6. Servlets 6. Uniform Resource Identifiers 6. Requests, Responses, and Headers 6. Headers 6. Requests 6. Responses 6. Pulling It All Together 6. Servlet Concepts 6. Support for Servlets 6. Servlet Life Cycle 6. An Example Servlet 6. Web Deployment Descriptors 6. Filters 6. Summary 7. WebSphere Studio Workbench Overview 7. Create a Web project 7.
Building a business model with Java objects 7. Create the servlets for accessing and updating the model 7. Some Problems with This Example 7. Summary 8. Edit the Web Deployment Descriptor 8. Deploying to an Enterprise Application 8. Start the WTE 8. Debug a Servlet 8. Summary 9. Managing Session State 9. Some Client-Side Session Approaches 9. Using Cookies to Maintain State 9. Hidden Fields 9. URL Parameters 9. Servlets and Session State 9. HttpSession Binding 9. How the Session Is Found 9. Choosing the Right Approach 9.
URL Rewriting 9. Session Persistence 9. WebSphere Persistent Session Management 9. Database session persistence Single vs multirow schema 9. Memory-to-memory session replication 9.
Session Management Levels 9. Summary JavaServer Pages Concepts Page Templates and Server-Side Scripting Page Compilation—Runtime View JSP Syntax Scripting Elements Scriptlets Expressions Declarations Directives The Page Directive The Include Directive Implicit Objects JSP Documents XML Syntax Elements Roles for JSP Tag Libraries and Custom Tags Introduction Basic Model for Custom Tags Writing Tag Handlers Tag Library Descriptor. Taglib Directive and Coding Custom Actions Support for Custom Actions Design Considerations for Controllers Where Do Controllers Come From?
Controller Design Alternatives Page Controller Gateway servlet Exception Handling Logging Servlet Filters Another Look at MVC JavaBeans, Introspection, and Contracts Editing JavaServer Pages Validating the JSP Page Running on the Server Debugging the JSP Simplifying JSPs Java Standard Tag Library XML compliance Road Map Why Do You Need a Framework?
What Is Struts? Building the Model Form Beans Building the Actions ActionForm Validation Putting it all Together in the struts-config. Local Forwards Struts Best Practices Interaction Controller XML Generator XSL Pulling It All Together Creating a Web Project Creating the XML file Creating the XSL File XSL Debugging and Transformation Transforming XML files Review timesheet1.
Refactor 1: Decompose into Templates Entries Template Entry Template Integrating with Existing Templates Testing the New Templates Refactoring 3: Add Project Summary Information ProjectTotals template Project Template Create a Java Package Create an XML Generator Update Java Classpath Create a Servlet Test and Debug Developing and Testing the Domain Model The Domain Model Layer Service Layer Approaches to Domain Modeling Issues with Domain Modeling The Data Mapping Layer Object-to-Relational Mapping Mapping Architecture Overview Accessing Object-Specific Mappers Mapping Objects to Relational Tables Handling Object Identity Mapping Object Attributes Finding Objects Maintaining Consistent State Mapping Associations Inheritance Lazy Load Keeping Track of Changes Transaction Management Odds and Ends Testing the Model Overall Testing Approaches Tool Selection Coding Standards Testing Strategies Why Unit Test?
What Is JUnit? A Simple Example Unit Testing Containers with Cactus Cactus API Function Testing What Is HttpUnit? Following Links Working with Forms Working with Tables Working with Frames Supporting Enterprise Applications Another Look at the n-Tier Architecture Object Distribution Some of the Remaining Holes Where This Leads Us Integration Styles and Messaging Object Persistence Objects and Transactions Security in Enterprise Applications Basic EJB Architecture Core EJB Concepts Components and Containers Deployment The EJB Types Session EJBs Entity EJBs Message-Driven Beans EJBs—Distributed or Not?
The Role of Persistence Mapper Layers Container Managed Entity Beans Other Options Some Technical Questions to Ask The J2EE Perspective J2EE Hierarchy View J2EE Navigator View Servers View DB Servers View J2EE Projects Java Utility JARs J2EE Project Dependencies JAR Dependency Editor Creating a Session Bean Testing the New Session Bean Developing the Service Layer Creating and Configuring the Example Projects Creating the Session Bean Add the Service Layer Methods Developing the Client View Overview of the Testing Process Step 3: Publishing and Starting the Server Instance Create a Server Instance and Configuration Add the Enterprise Application to the Server Configure the server Publish the Server Start Up the Server Run the Application EJB Client Development Building Java Application Clients Applet Clients in WebSphere Naming and the WebSphere Namespace Names and Name Resolution Creating a Test Client Deploying Application Clients in WebSphere Entity Bean Basics The Parts of an Entity Bean Local Interfaces Local Home Interfaces Key Classes Uniqueness of Primary Keys These chapters assist you in using the features offered by these tools, such as integrated debugging, the WebSphere Test Environment, Studio Wizards, and publishing of Web site resources.
We also describe how Rational's ClearCase product can be integrated with our environment for Software Configuration Management. In Part 2 we describe the Pattern Development Kit sample application, including installation, configuration, and operation. We also discuss the application's use of Patterns for e-business, which presents information on some of the design decisions employed when creating the application.
This IBM Redbook is intended to be read by anyone who requires both introductory and detailed information on software development in the WebSphere environment using servlets and JavaServer Pages. Don't be overwhelmed with programming gobbledygook. This book is the definitive guided tour through learning how to develop applications using WebSphere Studio and JavaBeans, with a clear and understandable explanation of XML and database programming.
In the simplest way possible, you'll learn reusable concepts, not just product. Along the way, you'll learn the basics of how to develop Java applets and applications, as well as more advanced topics, such as using relational databases and eXtensible Markup Language XML documents to store your application data.
By the end of the tour, you'll be able to use WebSphere Studio to build your own applications, and you'll understand why JavaBeans are so useful for application programming. This book assumes y Fully updated for Versions 5. The authors are an ext
0コメント