Zambon - Beginning JSP, JSF and Tomcat Web Development (Apress, 2007).pdf

(7013 KB) Pobierz
146576296 UNPDF
THE EXPERT’s VOICE ® IN JAVA TECHNOLOGIEs
Beginning
JSP JSF
Web Development
From Novice to Professional
Learn and apply the very fundamentals of Java
Web development using JSP and JSF API, and
deployment using Apache Tomcat 6 server.
Giulio Zambon
with Michael Sekler
and Tomcat
146576296.045.png 146576296.055.png 146576296.066.png 146576296.076.png 146576296.001.png 146576296.002.png 146576296.003.png 146576296.004.png 146576296.005.png 146576296.006.png 146576296.007.png 146576296.008.png 146576296.009.png 146576296.010.png 146576296.011.png 146576296.012.png 146576296.013.png 146576296.014.png 146576296.015.png 146576296.016.png 146576296.017.png 146576296.018.png 146576296.019.png 146576296.020.png 146576296.021.png 146576296.022.png 146576296.023.png 146576296.024.png 146576296.025.png 146576296.026.png 146576296.027.png 146576296.028.png 146576296.029.png 146576296.030.png 146576296.031.png 146576296.032.png 146576296.033.png 146576296.034.png 146576296.035.png 146576296.036.png
 
146576296.037.png
 
146576296.038.png
 
146576296.039.png
 
146576296.040.png
 
146576296.041.png 146576296.042.png 146576296.043.png 146576296.044.png 146576296.046.png 146576296.047.png 146576296.048.png 146576296.049.png 146576296.050.png 146576296.051.png 146576296.052.png
 
146576296.053.png 146576296.054.png 146576296.056.png 146576296.057.png 146576296.058.png 146576296.059.png 146576296.060.png 146576296.061.png 146576296.062.png 146576296.063.png 146576296.064.png 146576296.065.png 146576296.067.png 146576296.068.png 146576296.069.png 146576296.070.png 146576296.071.png 146576296.072.png 146576296.073.png 146576296.074.png
 
Beginning JSP
, and Tomcat
Web Development
From Novice to Professional
Giulio Zambon
with Michael Sekler
,
JSF
146576296.075.png 146576296.077.png 146576296.078.png
and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc., in the
US and other countries. Apress, Inc., is not affiliated with Sun Microsystems, Inc., and this book was writ-
ten without endorsement from Sun Microsystems, Inc.
Lead Editor: Steve Anglin
Technical Reviewer: Kunal Mittal
Editorial Board: Steve Anglin, Ewan Buckingham, Tony Campbell, Gary Cornell, Jonathan Gennick,
Jason Gilmore, Kevin Goff, Jonathan Hassell, Matthew Moodie, Joseph Ottinger, Jeffrey Pepper,
Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh
Project Manager: Richard Dal Porto
Copy Editor: Nicole Abramowitz
Associate Production Director: Kari Brooks-Copony
Production Editor: Janet Vail
Compositor: Linda Weidemann, Wolf Creek Press
Proofreader: Linda Seifert
Indexer: Toma Mulligan, Book Indexers
Artist: April Milne
Cover Designer: Kurt Krames
Manufacturing Director: Tom Debolski
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders- ny@springer-sbm.com , or
For information on translations, please contact Apress directly at 2855 Telegraph Avenue, Suite 600,
Berkeley, CA 94705. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com , or visit
The information in this book is distributed on an “as is” basis, without warranty. Although every pre-
caution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any
liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly
or indirectly by the information contained in this work.
The source code for this book is available to readers at http://www.apress.com .
Beginning JSP™, JSF™, and Tomcat Web Development: From Novice to Professional
Copyright © 2007 by Giulio Zambon with Michael Sekler
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-59059-904-4
ISBN-10 (pbk): 1-59059-904-7
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence
of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
Java
146576296.079.png
Contents at a Glance
About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
n CHAPTER 1 Introducing JavaServer Pages and Tomcat . . . . . . . . . . . . . . . . . . . . . . 1
n CHAPTER 2 JSP Explained . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
n CHAPTER 3 The Web Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
n CHAPTER 4 Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
n CHAPTER 5 At Face Value (JSF Primer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
n CHAPTER 6 Communicating with XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
n CHAPTER 7 Tomcat 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
n CHAPTER 8 Eshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
n APPENDIX A Installing Everything . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
n APPENDIX B HTML Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
n APPENDIX C HTML Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
n APPENDIX D JSP Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
n APPENDIX E SQL Quick Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
n APPENDIX F JSF Quick Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
n APPENDIX G Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
n APPENDIX H Abbreviations and Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
n INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
iii
146576296.080.png
Zgłoś jeśli naruszono regulamin