Résumé
Thousands of developers have discovered that JavaServer Pages represent the optimal solution for cross-platform web-based development. Now that they've mastered the basics of JSP, many are seeking to deepen and strengthen their expertise. In Advanced JavaServer Pages, best-selling Java author and former JavaSoft developer David Geary delivers the sophisticated enterprise-class techniques they're searching for.
Geary tackles JavaServer Pages 1.1 with the same exhaustive, authoritative approach that made his Graphic Java books so successful. He begins with a thorough review of JSP elements, servlets, and JavaBeans; then introduces custom and body tags; and offers sophisticated insights into JSP-based Web application design. Advanced JavaServer Pages includes detailed chapters on internationalization, security, databases, e-mail integration, and Enterprise JavaBeans.
For every Java developer interested in creating server-side programs with JavaServer Pages and Sun's servlet technologies.
Table of Contents
- Preface ..... xiii
- Acknowledgments ..... xix
- 1: Custom Tag Fundamentals ..... 2
- Using Custom Tags-The JSP File ..... 5
- Defining Custom Tags-The TLD ..... 6
- Implementing Custom Tags-Tag Handlers ..... 7
- Specifying the TLD in WEB-INF/web.xml ..... 10
- <taglib> and <tag> ..... 11
- The Tag Life Cycle ..... 12
- Thread Safety ..... 13
- Tags with Attributes ..... 14
- Accessing Page Information ..... 20
- Error Handling ..... 22
- The Tag Package ..... 23
- The Tag Interface ..... 25
- The TagSupport Class: Ancestors, Values, and IDs ..... 26
- Tags with Bodies ..... 27
- Conclusion ..... 29
- 2: Custom Tag Advanced Concepts ..... 32
- Body Tag Handlers ..... 34
- Iteration ..... 36
- Scripting Variables ..... 41
- Body Content ..... 46
- Nested Tags ..... 57
- Conclusion ..... 59
- 3: HTML Forms ..... 60
- Forms with Beans ..... 61
- Validation ..... 69
- A Form Framework ..... 77
- Custom Tags ..... 93
- Conclusion ..... 95
- 4: Templates ..... 96
- Encapsulating Layout ..... 98
- Optional Content ..... 103
- Role-based Content ..... 106
- Defining Regions Separately ..... 108
- Nesting Regions ..... 110
- Extending Regions ..... 112
- Combining Features ..... 114
- Region Tag Implementations ..... 116
- Conclusion ..... 130
- 5: Design ..... 132
- Model 1 ..... 134
- Model 2: An MVC Approach ..... 135
- A Model 2 Example ..... 137
- Conclusion ..... 152
- 6: A Model 2 Framework ..... 154
- A Model 2 Framework ..... 155
- Refining the Design ..... 165
- The Importance of Custom Tags ..... 175
- JSP Scripts ..... 178
- Conclusion ..... 180
- 7: Event Handling and Sensitive Form Resubmissions ..... 182
- Event Handling for a Model 2 Framework ..... 184
- Sensitive Form Resubmissions ..... 190
- Conclusion ..... 205
- 8: I18N ..... 206
- Unicode ..... 208
- Charsets ..... 209
- Locales ..... 211
- Resource Bundles ..... 213
- Multiple Resource Bundles ..... 221
- Formatting Locale-Sensitive Information ..... 224
- Browser Language Preferences ..... 233
- Custom Tags ..... 237
- Conclusion ..... 248
- 9: Security ..... 250
- Servlet Authentication ..... 251
- Basic Authentication ..... 256
- Digest Authentication ..... 259
- Form-Based Authentication ..... 260
- SSL and Client Certificate Authentication ..... 263
- Customizing Authentication ..... 263
- Web Application Security Elements ..... 269
- Programmatic Authentication ..... 271
- Conclusion ..... 281
- 10: Databases ..... 282
- Database Creation ..... 284
- Data Sources ..... 287
- Database Custom Tags ..... 287
- Connection Pooling ..... 302
- Prepared Statements ..... 314
- Transactions ..... 320
- Scrolling Through Result Sets ..... 324
- Conclusion ..... 329
- 11: XML ..... 330
- Generating XML ..... 333
- Postprocessing XML ..... 339
- Parsing XML ..... 341
- Transforming XML ..... 374
- Using XPath ..... 384
- Conclusion ..... 389
- 12: A Case Study ..... 390
- The Fruitstand ..... 392
- The Model 2 Framework ..... 416
- Internationalization ..... 438
- Authentication ..... 443
- HTML Forms ..... 455
- Sensitive Form Resubmissions ..... 464
- SSL ..... 465
- XML and DOM ..... 466
- Conclusion ..... 469
- A: Servlet Filters ..... 470
- A Servlet Filter Example ..... 472
- Conclusion ..... 474
- Index ..... 477
L'auteur - David M. Geary
DAVID M. GEARY is the president of Sabreware, Inc., a
training and consulting company focusing on server-side
Java technology. He has been developing object-oriented
software for nearly 20 years and was among the pioneers who
worked on the Java platform APIs at Sun Microsystems from
1994 to 1997. Geary is the author of six books on Java
technology, including the runaway best-selling Graphic Java
series, and Advanced JavaServer Pages. A member of the
expert group that developed JSTL, he is also a contributor
to the Apache Struts JSP software application framework and
wrote questions for the Web component developer
certification exam. Since 1996, he has been a columnist for
Java Report magazine. He also writes JavaWorld's Java
Design Patterns column.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Prentice Hall |
Auteur(s) | David M. Geary |
Parution | 15/09/2000 |
Nb. de pages | 486 |
Format | 17,7 x 23,4 |
Couverture | Relié |
Poids | 974g |
Intérieur | Noir et Blanc |
EAN13 | 9780130307040 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse
- Informatique Développement d'applications Conception et développement web Serveurs web et serveurs d'application
- Informatique Développement d'applications Conception et développement web Serveurs web et serveurs d'application Tomcat
- Informatique Développement d'applications Conception et développement web Serveurs web et serveurs d'application JBoss
- Informatique Développement d'applications Langages Java - J2EE JavaServer Pages (JSP)