art of java web development, 2004

627 1.2K 0
art of java web development, 2004

Đ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

MANNING Neal Ford STRUTS TAPESTRY COMMONS VELOCITY JUNIT AXIS COCOON INTERNETBEANS WEBWORK ART OF JAVA WEB DEVELOPMENT Art of Java Web Development Art of Java Web Development STRUTS, TAPESTRY, COMMONS, VELOCITY, JUNIT, AXIS, COCOON, INTERNETBEANS, WEBWORK NEAL FORD MANNING Greenwich (74° w. long.) For online information and ordering of this and other Manning books, go to www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special Sales Department Manning Publications Co. 209 Bruce Park Avenue Fax: (203) 661-9018 Greenwich, CT 06830 email: orders@manning.com ©2004 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books they publish printed on acid-free paper, and we exert our best efforts to that end. Manning Publications Co. Copyeditor: Liz Welch 209 Bruce Park Avenue Typesetter: Dottie Marsico Greenwich, CT 06830 Cover designer: Leslie Haimes ISBN: 1-932394-06-0 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – VHG – 08 07 06 05 04 03 To Chuck, who still teaches me stuff daily vii brief contents PART ITHE EVOLUTION OF WEB ARCHITECTURE AND DESIGN 1 1 ■ State-of-the-art web design 3 2 ■ Building web applications 27 3 ■ Creating custom JSP tags 61 4 ■ The Model 2 design pattern 91 PART II WEB FRAMEWORKS 131 5 ■ Using Struts 133 6 ■ Tapestry 159 7 ■ WebWork 199 8 ■ InternetBeans Express 227 9 ■ Velocity 261 10 ■ Cocoon 283 11 ■ Evaluating frameworks 311 viii BRIEF CONTENTS PART III BEST PRACTICES 327 12 ■ Separating concerns 329 13 ■ Handling flow 371 14 ■ Performance 409 15 ■ Resource management 445 16 ■ Debugging 475 17 ■ Unit testing 521 18 ■ Web services and Axis 543 19 ■ What won’t fit in this book 563 [...]... about the cover illustration xxx PART I THE EVOLUTION OF WEB ARCHITECTURE AND DESIGN 1 1 State -of- the -art web design 3 1.1 A brief history of Java web development 1.2 The importance of design patterns The Model-View-Controller design pattern Model 2 9 Evolution 10 4 6 7 I The emergence of I 1.3 Using frameworks 11 A flavor of the Struts framework 12 A flavor of the Turbine framework 14 Objectively... lots of moving parts working together seamlessly The best practices in this book are presented in the context of a working e-commerce xxi xxii ABOUT THE BOOK application, with all the places that the real world intersects with the academia of the pattern discussed How this book is organized Art of Java Web Development consists of three parts It begins with coverage of the history of the architecture of. .. architecture of web applications, highlighting the uses of the standard web API to create applications with increasingly sophisticated architectures The discussion leads to the development of industry-accepted best practices for architecture Instead of simply pronouncing one architecture as the best, Art of Java Web Development shows the history and evolution of each architecture The second part of the book... application frameworks (which are the topic of part 2 of this book) Finally, we examine best practices (the focus of part 3), along with a hot-button issue that falls under that heading The main goal of this book is to show you how to apply best software-engineering practices to the development of web applications in Java 1.1 A brief history of Java web development Java began life as a programming language designed... Because of the oft-quoted and well-documented cost of architectural and design changes late in the application lifecycle, it behooves you to get it right from the outset This chapter provides an overview of the topics we cover in this book First, we discuss the evolution of Java web development and the importance of design patterns Next, we examine web application frameworks (which are the topic of part... previous rule of thumb are applications that illustrate particular J2EE features not found in Tomcat For example, chapter 12 features Enterprise JavaBeans and uses the JBoss application server instead of Tomcat In any case, the samples all run in any servlet engine or application server that matches the standard J2EE architecture The frameworks Part 2 of Art of Java Web Development covers various web development... Both of these influential books offered a comprehensive look at the current thinking in their fields Each covered a variety of topics, discussing specific techniques and underlying theories They included concrete, practical advice, and they talked about the tools available to make the job of warfare (or cooking) easier Art of Java Web Development strives for the same breadth and depth of coverage for web. .. restaurants (sometimes enjoying combinations of the above) He has also been known to sit in front of a computer for vast amounts of time When at home, Neal enjoys the company of his wife, Candy, and two cats, Winston and Parker about the cover illustration The figure on the cover of Art of Java Web Development is a "Nukahiviens avec un Tatouage Tout Different," a resident of Nukahiva Island in the Marquesas... the entire book Chapter 2 covers the evolution of web development in Java; chapter 3 explores that evolution through custom JSP tags Chapter 4 discusses the preferred design and architecture option, Model 2, along with some architectural options State -of- the -art web design This chapter covers I A brief history of Java web development I The importance of design patterns I An introduction to the Struts... about unit testing, an often-neglected part of application development, especially in web applications We show you how to build tests for your web applications and discuss JUnit and JWebUnit, both very popular open-source testing frameworks Chapter 18 wraps up the best practices portion of the book by examining web services and explaining how to incorporate them into your existing web applications Finally, . Ford STRUTS TAPESTRY COMMONS VELOCITY JUNIT AXIS COCOON INTERNETBEANS WEBWORK ART OF JAVA WEB DEVELOPMENT Art of Java Web Development Art of Java Web Development STRUTS, TAPESTRY, COMMONS,. illustration xxx PART ITHE EVOLUTION OF WEB ARCHITECTURE AND DESIGN 1 1 State -of- the -art web design 3 1.1 A brief history of Java web development 4 1.2

Ngày đăng: 20/03/2014, 15:38

Từ khóa liên quan

Mục lục

  • brief contents

  • contents

  • preface

  • acknowledgments

  • about the book

    • How this book is organized

    • Notes about the samples

    • Source code

    • Typographic conventions

    • Author Online

    • About the author

    • about the cover illustration

    • Part I The evolution of web architecture and design

      • State-of-the-art web design

        • 1.1 A brief history of Java web development

        • 1.2 The importance of design patterns

          • 1.2.1 The Model-View-Controller design pattern

          • 1.2.2 The emergence of Model 2

          • 1.2.3 Evolution

          • 1.3 Using frameworks

            • 1.3.1 A flavor of the Struts framework

            • 1.3.2 A flavor of the Turbine framework

            • 1.3.3 Objectively choosing a framework

            • 1.4 Best practices

              • 1.4.1 Business rules

                • Defining “business rules”

                • A working definition

Tài liệu cùng người dùng

Tài liệu liên quan