Java 2 Enterprise Edition - Trottier_ Alain.pdf

(7157 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
00 8621 fm/in/sa 10/25/02 2:40 PM Page i
Java 2 Enterprise
Edition (J2EE) Web
Component
Developer Exam
Alain Trottier
878334019.025.png 878334019.026.png 878334019.027.png 878334019.028.png 878334019.001.png 878334019.002.png 878334019.003.png 878334019.004.png 878334019.005.png
 
00 8621 fm/in/sa 10/25/02 2:40 PM Page ii
Java 2 Enterprise Edition (J2EE) Web Component
Developer Exam Cram2 (Exam 310-080)
Copyright 2003 by Que Certification
All rights reserved. No part of this book shall be reproduced, stored in
a retrieval system, or transmitted by any means, electronic, mechanical,
photocopying, recording, or otherwise, without written permission
from the publisher. No patent liability is assumed with respect to the
use of the information contained herein. Although every precaution
has been taken in the preparation of this book, the publisher and
author assume no responsibility for errors or omissions. Nor is any lia-
bility assumed for damages resulting from the use of the information
contained herein.
International Standard Book Number: 0-7897-2862-1
Library of Congress Catalog Card Number: 2002113788
Printed in the United States of America
First Printing: December 2002
05
Publisher
Paul Boger
Executive Editor
Jeff Riley
Development Editor
Susan Brown Zahn
Managing Editor
Thomas F. Hayes
Project Editor
Carol Bowers
04
03
02
4321
Copy Editor
Krista Hansing
Trademarks
All terms mentioned in this book that are known to be trademarks or
service marks have been appropriately capitalized. Que Certification
cannot attest to the accuracy of this information. Use of a term in this
book should not be regarded as affecting the validity of any trademark
or service mark.
Indexer
Heather McNeill
Proofreader
Juli Cook
Warning and Disclaimer
Every effort has been made to make this book as complete and as accu-
rate as possible, but no warranty or fitness is implied. The information
provided is on an “as is” basis. The author and the publisher shall have
neither liability nor responsibility to any person or entity with respect
to any loss or damages arising from the information contained in this
book or from the use of the CD or programs accompanying it.
Technical Editor
Steve Heckler
Team Coordinator
Rosemary Lewis
Multimedia Developer
Michael Hunter
Page Layout
Michelle Mitchell
 
878334019.006.png
00 8621 fm/in/sa 10/25/02 2:40 PM Page iii
Que Certification • 201 West 103rd Street • Indianapolis, Indiana 46290
A Note from Series Editor Ed Tittel
You know better than to trust your certification preparation to just
anybody. That’s why you, and more than two million others, have
purchased an Exam Cram book. As Series Editor for the new and
improved Exam Cram2 series, I have worked with the staff at Que Certification to
ensure you won’t be disappointed. That’s why we’ve taken the world’s best-selling
certification product—a finalist for “Best Study Guide” in a CertCities reader poll
in 2002—and made it even better.
As a “Favorite Study Guide Author” finalist in a 2002 poll of
CertCities readers, I know the value of good books. You’ll be
impressed with Que Certification’s stringent review process,
which ensures the books are high-quality, relevant, and
technically accurate. Rest assured that at least a dozen industry
experts—including the panel of certification experts at
CramSession—have reviewed this material, helping us deliver an
excellent solution to your exam preparation needs.
We’ve also added a preview edition of PrepLogic’s powerful, full-featured test
engine, which is trusted by certification students throughout the world.
As a 20-year-plus veteran of the computing industry and the original creator and
editor of the Exam Cram series, I’ve brought my IT experience to bear on these
books. During my tenure at Novell from 1989 to 1994, I worked with and around
its excellent education and certification department. This experience helped push
my writing and teaching activities heavily in the certification direction. Since then,
I’ve worked on more than 70 certification-related books, and I write about
certification topics for numerous Web sites and for Certification magazine.
In 1996, while studying for various MCP exams, I became frustrated with the
huge, unwieldy study guides that were the only preparation tools available. As an
experienced IT professional and former instructor, I wanted “nothing but the facts”
necessary to prepare for the exams. From this impetus, Exam Cram emerged in
1997. It quickly became the best-selling computer book series since “ …For
Dummies ,” and the best-selling certification book series ever. By maintaining an
intense focus on subject matter, tracking errata and updates quickly, and following
the certification market closely, Exam Cram was able to establish the dominant
position in cert prep books.
You will not be disappointed in your decision to purchase this book. If you are,
please contact me at etittel@jump.net. All suggestions, ideas, input, or constructive
criticism are welcome!
878334019.007.png 878334019.008.png 878334019.009.png 878334019.010.png 878334019.011.png
 
878334019.012.png 878334019.013.png 878334019.014.png 878334019.015.png
 
00 8621 fm/in/sa 10/25/02 2:40 PM Page iv
Taking You to the J2EE Web
Component Developer Finish Line!
J2EE Web Component Developer
Training Guide
Alain Trottier
ISBN 0-7897-2821-4
$49.99 US/$77.99 CAN/£36.50 Net UK
.
Before you walk into your local
testing center, make absolutely sure
you’re prepared to pass your exam.
In addition to the Exam Cram2
series, consider our Training Guide
series. Que Certification’s Training
Guides have exactly what you need
to pass your exam:
Exam Objectives highlighted in every chapter
Notes, Tips, Warnings, and Exam Tips advise what
to watch out for
Step-by-Step Exercises for “hands-on” practice
End-of-chapter Exercises and Exam Questions
Final Review with Fast Facts, Study and Exam Tips, and
another Practice Exam
A CD that includes PrepLogic Practice Tests for complete
evaluation of your knowledge
Our authors are recognized experts in the field. In most
cases, they are current or former instructors, trainers, or
consultants – they know exactly what you need to know!
www.examcram.com
CERTIFICATION
878334019.016.png 878334019.017.png 878334019.018.png 878334019.019.png 878334019.020.png 878334019.021.png
00 8621 fm/in/sa 10/25/02 2:40 PM Page v
Contents at a Glance
...............................................
Introduction
xviii
Self-Assessment
xxv
Chapter 1
Servlet Methods and Life Cycle
1
Chapter 2
Deploying Web Applications
27
Chapter 3
Servlet Container
53
Chapter 4
Servlet Exceptions
69
Chapter 5
Session Management
83
Chapter 6
Web Application Security
95
Chapter 7
Thread Safe Servlets
117
Chapter 8
Java Server Pages (JSP)
129
Chapter 9
JSP & JavaBeans
153
Chapter 10
Customize Tag Libraries
171
Chapter 11
Design Patterns
191
Chapter 12
Sample Test
205
Chapter 13
Answer Key
229
Appendix A
Servlet API Snapshot
249
Appendix B
JSP Syntax Snapshot
261
Appendix C
Resources
277
Appendix D
What’s on the CD
287
 
878334019.022.png 878334019.023.png 878334019.024.png
Zgłoś jeśli naruszono regulamin