JSTL -  Sue Spielman

JSTL (eBook)

Practical Guide for JSP Programmers

(Autor)

eBook Download: PDF
2003 | 1. Auflage
229 Seiten
Elsevier Science (Verlag)
978-0-08-049596-5 (ISBN)
Systemvoraussetzungen
26,68 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
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.
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.

Cover 1
Contents 10
Preface 18
Chapter 1. Introduction 22
1.1 What Exactly Is the JSTL? 22
1.2 Why a JSP Standard Tag Library? 23
1.3 Why Now? 23
1.4 Why You Really Want to Use the JSTL 24
1.5 The Need for Encapsulation 24
1.6 Functional Overview 24
1.7 JSTL Tag Libraries 25
1.8 Getting Ready to Use the JSTL 27
1.9 The Road to the JSTL 27
1.10 Servlets to the Rescue 29
1.11 Hello My Friend Servlet 30
1.12 JavaServer Pages 33
1.13 When a JSP, When a Servlet? 35
1.14 Evolving JSP 35
1.15 Custom Actions in Action 36
1.16 The Power of Tag Libraries 40
1.17 Making Life Easier, JSTL in Action 41
Chapter 2. JSTL Basics 44
2.1 Environment Setup 44
2.2 Using the Book Examples 45
2.3 JSP Scopes 46
2.4 JSTL Scoped Variables 48
2.5 Dynamic and Static Attributes 50
2.6 Handling Errors and Exceptions 50
2.7 Action Body Content 52
2.8 Configuration Settings 53
2.9 The Config Class 54
2.10 Summary 55
Chapter 3. Using the Expression Language 56
3.1 Implicit Objects Available in the EL 57
3.2 Accessing Data Structures 58
3.3 EL Operators 59
3.4 Automatic Type Conversion 61
3.5 Default Values 62
3.6 Summary 63
Chapter 4. Working with the Core Actions 64
4.1 Writing Output to the JspWriter 64
4.2 Setting Variables 66
4.3 Removing Variables 70
4.4 Using < c:catch>
4.5 Decisions, Decisions, Decisions„Conditional Actions 73
4.6 Handling Iterators 77
4.7 URL-Related Actions 92
4.8 Untangling the Web We Weave 97
4.9 Redirecting 104
4.10 Summary 105
Chapter 5. Working with the XML Actions 106
5.1 Overview of Supporting Technologies 106
5.2 eXtensible Markup Language (XML) 107
5.3 eXtenstible Stylesheet Language (XSL) 109
5.4 XML Path Language (XPath) 111
5.5 Variable Mappings 112
5.6 Using the Select Attribute 114
5.7 Accessing Resources 114
5.8 extensible Stylesheet Language Transformation (XSLT) 116
5.9 Parsing XML Documents 117
5.10 Using < x:out>
5.11 < x:set>
5.12 Using XML Documents to Determine Flow Control 123
5.13 Going Loopy with < x:forEach>
5.14 XML Transformation Actions 131
5.15 Transforming Content 132
5.16 Providing Parameters to Transformations 134
5.17 Summary 136
Chapter 6. Working with the Internationalization and Formatting Actions 138
6.1 Locales 139
6.2 Why be Language Independent? 140
6.3 Localizing an Application Using Resource Bundles 140
6.4 Types of I18N Architectures 141
6.5 First, the < fmt: message>
6.6 Localization Context 143
6.7 Localization Context Sample 144
6.8 Preferred Locales 144
6.9 Formatting Locales 145
6.10 How Resource Bundles are Decided 146
6.11 Resource Bundle Lookup Samples 150
6.12 Using the LocaleSupport Class 150
6.13 Setting and Using Locales 151
6.14 Using Messages and Resource Bundles 154
6.15 Setting the Resource Bundle for < fmt.message>
6.16 Adding a parameter to < fmt: message>
6.17 Formatting Actions 160
6.18 Setting and Using Time Zones 162
6.19 Working with Timestamps 164
6.20 Formatting and Parsing Timestamps 164
6.21 Using and Parsing Timestamps 169
6.22 Working with Numbers 171
6.23 Encoding the Client Response 179
6.24 Summary 181
Chapter 7. SQL Tag Library Using the SQL Actions 182
7.1 The Available < SQL>
7.2 Working with the Data Source 184
7.3 Configuring a Data Source 185
7.4 Using a Data Source 186
7.5 Maxrows Configuration Setting 186
7.6 Configuring and Using a Data Source 187
7.7 How to Modify Data 188
7.8 Interfaces and Classes 191
7.9 Finding What You Need with < sql: query>
7.10 Passing Parameters to SQL Statements 195
7.11 Working with Result Sets 198
7.12 Dealing with Transactions 202
7.13 < sql: transaction>
7.14 How to Use < sql: transaction>
7.15 Summary 206
7.16 Conclusion 207
Chapter 8. JSTL Quick Reference 208
8.1 Expression Language Syntax 208
8.2 Configuration Settings 217
8.3 Core Tag Library 219
8.4 XML Tag Library 227
8.5 SQL Tag Library 232
8.6 I18N Tag Library 236
Index 246

Erscheint lt. Verlag 1.10.2003
Sprache englisch
Themenwelt Informatik Programmiersprachen / -werkzeuge Java
Mathematik / Informatik Informatik Web / Internet
ISBN-10 0-08-049596-6 / 0080495966
ISBN-13 978-0-08-049596-5 / 9780080495965
Haben Sie eine Frage zum Produkt?
PDFPDF (Adobe DRM)

Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine Adobe-ID und die Software Adobe Digital Editions (kostenlos). Von der Benutzung der OverDrive Media Console raten wir Ihnen ab. Erfahrungsgemäß treten hier gehäuft Probleme mit dem Adobe DRM auf.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine Adobe-ID sowie eine kostenlose App.
Geräteliste und zusätzliche Hinweise

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Einführung, Ausbildung, Praxis

von Christian Ullenboom

eBook Download (2023)
Rheinwerk Computing (Verlag)
37,43
Moderne GUIs für RIAs und Java-Applikationen

von Ralph Steyer

eBook Download (2022)
Springer Fachmedien Wiesbaden (Verlag)
42,99