E-Book, Englisch, 229 Seiten, Web PDF
Spielman JSTL
1. Auflage 2003
ISBN: 978-0-08-049596-5
Verlag: Elsevier Science & Techn.
Format: PDF
Kopierschutz: 1 - PDF Watermark
Practical Guide for JSP Programmers
E-Book, Englisch, 229 Seiten, Web PDF
ISBN: 978-0-08-049596-5
Verlag: Elsevier Science & Techn.
Format: PDF
Kopierschutz: 1 - PDF Watermark
Web developers and page authors who use JavaServer Pages (JSP) know that it is much easier and efficient to implement web pages without reinventing the wheel each time. In order to shave valuable time from their development schedules, those who work with JSP have created, debugged, and used custom tags-a set of programmable actions that provide dynamic behavior to static pages-paving the way towards a more common, standard approach to using Java technology for web development. The biggest boost to this effort however has only recently arrived in the form of a standard set of tag libraries, known as the JSTL, which now provides a wide range of functionality and gives web page authors a much more simplified approach to implementing dynamic, Java-based web sites.
JSTL: Practical Guide for JSP Programmers is a timely resource for anyone interested in doing large-scale J2EE application development. It sticks to the main features of the JSTL so that developers don't have to sift through unnecessary details to begin using the tags and working with the expression language. Sue Spielman's straight-forward, practical approach is enhanced with numerous code samples and insightful descriptions to make learning the JSTL a quickly and easily accomplished task.
* Written by a best-selling author with a wealth of development experience and recognition in the Java community.
* Covers the core elements of the JSTL including the four standard tag libraries (core, internationalization/format, XML, and SQL) and expression language.
* Includes a reference section for all of the tabs and attributes contained in the JSTL.
* Via a companion web site, provides downloadable code for the code samples in the book.
Autoren/Hrsg.
Weitere Infos & Material
1;Cover;1
2;Contents;10
3;Preface;18
4;Chapter 1. Introduction;22
4.1;1.1 What Exactly Is the JSTL?;22
4.2;1.2 Why a JSP Standard Tag Library?;23
4.3;1.3 Why Now?;23
4.4;1.4 Why You Really Want to Use the JSTL;24
4.5;1.5 The Need for Encapsulation;24
4.6;1.6 Functional Overview;24
4.7;1.7 JSTL Tag Libraries;25
4.8;1.8 Getting Ready to Use the JSTL;27
4.9;1.9 The Road to the JSTL;27
4.10;1.10 Servlets to the Rescue;29
4.11;1.11 Hello My Friend Servlet;30
4.12;1.12 JavaServer Pages;33
4.13;1.13 When a JSP, When a Servlet?;35
4.14;1.14 Evolving JSP;35
4.15;1.15 Custom Actions in Action;36
4.16;1.16 The Power of Tag Libraries;40
4.17;1.17 Making Life Easier, JSTL in Action;41
5;Chapter 2. JSTL Basics;44
5.1;2.1 Environment Setup;44
5.2;2.2 Using the Book Examples;45
5.3;2.3 JSP Scopes;46
5.4;2.4 JSTL Scoped Variables;48
5.5;2.5 Dynamic and Static Attributes;50
5.6;2.6 Handling Errors and Exceptions;50
5.7;2.7 Action Body Content;52
5.8;2.8 Configuration Settings;53
5.9;2.9 The Config Class;54
5.10;2.10 Summary;55
6;Chapter 3. Using the Expression Language;56
6.1;3.1 Implicit Objects Available in the EL;57
6.2;3.2 Accessing Data Structures;58
6.3;3.3 EL Operators;59
6.4;3.4 Automatic Type Conversion;61
6.5;3.5 Default Values;62
6.6;3.6 Summary;63
7;Chapter 4. Working with the Core Actions;64
7.1;4.1 Writing Output to the JspWriter;64
7.2;4.2 Setting Variables;66
7.3;4.3 Removing Variables;70
7.4;4.4 Using ;71
7.5;4.5 Decisions, Decisions, Decisions„Conditional Actions;73
7.6;4.6 Handling Iterators;77
7.7;4.7 URL-Related Actions;92
7.8;4.8 Untangling the Web We Weave;97
7.9;4.9 Redirecting;104
7.10;4.10 Summary;105
8;Chapter 5. Working with the XML Actions;106
8.1;5.1 Overview of Supporting Technologies;106
8.2;5.2 eXtensible Markup Language (XML);107
8.3;5.3 eXtenstible Stylesheet Language (XSL);109
8.4;5.4 XML Path Language (XPath);111
8.5;5.5 Variable Mappings;112
8.6;5.6 Using the Select Attribute;114
8.7;5.7 Accessing Resources;114
8.8;5.8 extensible Stylesheet Language Transformation (XSLT);116
8.9;5.9 Parsing XML Documents;117
8.10;5.10 Using and ;121
8.11;5.11 and in Action;122
8.12;5.12 Using XML Documents to Determine Flow Control;123
8.13;5.13 Going Loopy with ;127
8.14;5.14 XML Transformation Actions;131
8.15;5.15 Transforming Content;132
8.16;5.16 Providing Parameters to Transformations;134
8.17;5.17 Summary;136
9;Chapter 6. Working with the Internationalization and Formatting Actions;138
9.1;6.1 Locales;139
9.2;6.2 Why be Language Independent?;140
9.3;6.3 Localizing an Application Using Resource Bundles;140
9.4;6.4 Types of I18N Architectures;141
9.5;6.5 First, the Action;142
9.6;6.6 Localization Context;143
9.7;6.7 Localization Context Sample;144
9.8;6.8 Preferred Locales;144
9.9;6.9 Formatting Locales;145
9.10;6.10 How Resource Bundles are Decided;146
9.11;6.11 Resource Bundle Lookup Samples;150
9.12;6.12 Using the LocaleSupport Class;150
9.13;6.13 Setting and Using Locales ;151
9.14;6.14 Using Messages and Resource Bundles;154
9.15;6.15 Setting the Resource Bundle for ;157
9.16;6.16 Adding a parameter to ;159
9.17;6.17 Formatting Actions;160
9.18;6.18 Setting and Using Time Zones;162
9.19;6.19 Working with Timestamps;164
9.20;6.20 Formatting and Parsing Timestamps;164
9.21;6.21 Using and Parsing Timestamps;169
9.22;6.22 Working with Numbers;171
9.23;6.23 Encoding the Client Response;179
9.24;6.24 Summary;181
10;Chapter 7. SQL Tag Library Using the SQL Actions;182
10.1;7.1 The Available Actions;183
10.2;7.2 Working with the Data Source;184
10.3;7.3 Configuring a Data Source;185
10.4;7.4 Using a Data Source;186
10.5;7.5 Maxrows Configuration Setting;186
10.6;7.6 Configuring and Using a Data Source;187
10.7;7.7 How to Modify Data;188
10.8;7.8 Interfaces and Classes;191
10.9;7.9 Finding What You Need with ;193
10.10;7.10 Passing Parameters to SQL Statements;195
10.11;7.11 Working with Result Sets;198
10.12;7.12 Dealing with Transactions;202
10.13;7.13 Action;203
10.14;7.14 How to Use ;203
10.15;7.15 Summary;206
10.16;7.16 Conclusion;207
11;Chapter 8. JSTL Quick Reference;208
11.1;8.1 Expression Language Syntax;208
11.2;8.2 Configuration Settings;217
11.3;8.3 Core Tag Library;219
11.4;8.4 XML Tag Library ;227
11.5;8.5 SQL Tag Library;232
11.6;8.6 I18N Tag Library;236
12;Index;246




