ebook O'Reilly Java Servlet Programming, java
[ Pobierz całość w formacie PDF ]
Java
ä
Servlet Programming
Exploring Java
ä
Java
ä
Threads
Java
ä
Network Programming
Java
ä
Virtual Machine
Java
ä
AWT Reference
Java
ä
Language Reference
Java
ä
Fundamental Classes Reference
Database Programming with JDBC
ä
and Java
ä
Java
ä
Distributed Computing
Developing Java Beans
ä
Java
ä
Security
Java
ä
Cryptography
Java
ä
Swing
Java
ä
Servlet Programming
Also from O’Reilly
Java
ä
in a Nutshell
Java
ä
in a Nutshell, Deluxe Edition
Java
ä
Examples in a Nutshell
Java
ä
Servlet Programming
Jason Hunter
with William Crawford
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Paris
•
Sebastopol
•
Taipei
•
Tokyo
Java â„¢Servlet Programming
by Jason Hunter with William Crawford
Copyright © 1998 O’Reilly & Associates, Inc. All rights reserved.
Printed in the United States of America.
Published by O’Reilly & Associates, Inc., 101 Morris Street, Sebastopol, CA 95472.
Editor:
Paula Ferguson
Production Editor:
Paula Carroll
Editorial and Production Services
:
Benchmark Productions, Inc.
Printing History:
October 1998:
First Edition
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered
trademarks and The Java
â„¢
Series is a trademark of O’Reilly & Associates, Inc. The association
of the image of a copper teakettle with the topic of Java
â„¢
Servlet programming is a trademark
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.
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 assumes
no responsibility for errors or omissions, or for damages resulting from the use of the
information contained herein.
ISBN: 1-56592-391-X
[1/00]
[M]
 opd
0:
Table of Contents
0:
Preface
............................................................................................................................. ix
1.
Introduction
.....................................................................................................
1
History of Web Applications ...............................................................................
1
Support for Servlets .............................................................................................
7
The Power of Servlets ........................................................................................
10
2.
HTTP Servlet Basics
...................................................................................
14
HTTP Basics .......................................................................................................
14
The Servlet API ..................................................................................................
17
Page Generation ................................................................................................
19
Server-Side Includes ..........................................................................................
27
Servlet Chaining and Filters .............................................................................
30
JavaServer Pages .................................................................................................
37
Moving On .........................................................................................................
46
3.
The Servlet Life Cycle
................................................................................
48
The Servlet Alternative ......................................................................................
48
Servlet Reloading ...............................................................................................
55
Init and Destroy .................................................................................................
56
Single-Thread Model .........................................................................................
62
Background Processing .....................................................................................
64
Last Modified Times ..........................................................................................
67
v
Javaâ„¢ Servlet Programming, eMatter Edition
Copyright © 2000 O’Reilly & Associates, Inc. All rights reserved.
[ Pobierz całość w formacie PDF ]