JSTL: Practical Guide for JSP Programmers

Spielman, Sue

In stock
Regular price 12.750 KD inc. VAT
License
Table of contents
  • Cover
  • Contentsix
  • Prefacexvii
  • Chapter 1. Introduction1
  • 1.1 What Exactly Is the JSTL?1
  • 1.2 Why a JSP Standard Tag Library?2
  • 1.3 Why Now?2
  • 1.4 Why You Really Want to Use the JSTL3
  • 1.5 The Need for Encapsulation3
  • 1.6 Functional Overview3
  • 1.7 JSTL Tag Libraries4
  • 1.8 Getting Ready to Use the JSTL6
  • 1.9 The Road to the JSTL6
  • 1.10 Servlets to the Rescue8
  • 1.11 Hello My Friend Servlet9
  • 1.12 JavaServer Pages12
  • 1.13 When a JSP, When a Servlet?14
  • 1.14 Evolving JSP14
  • 1.15 Custom Actions in Action15
  • 1.16 The Power of Tag Libraries19
  • 1.17 Making Life Easier, JSTL in Action20
  • Chapter 2. JSTL Basics23
  • 2.1 Environment Setup23
  • 2.2 Using the Book Examples24
  • 2.3 JSP Scopes25
  • 2.4 JSTL Scoped Variables27
  • 2.5 Dynamic and Static Attributes29
  • 2.6 Handling Errors and Exceptions29
  • 2.7 Action Body Content31
  • 2.8 Configuration Settings32
  • 2.9 The Config Class33
  • 2.10 Summary34
  • Chapter 3. Using the Expression Language35
  • 3.1 Implicit Objects Available in the EL36
  • 3.2 Accessing Data Structures37
  • 3.3 EL Operators38
  • 3.4 Automatic Type Conversion40
  • 3.5 Default Values41
  • 3.6 Summary42
  • Chapter 4. Working with the Core Actions43
  • 4.1 Writing Output to the JspWriter43
  • 4.2 Setting Variables45
  • 4.3 Removing Variables49
  • 4.4 Using <c:catch>50
  • 4.5 Decisions, Decisions, Decisions„Conditional Actions52
  • 4.6 Handling Iterators56
  • 4.7 URL-Related Actions71
  • 4.8 Untangling the Web We Weave76
  • 4.9 Redirecting83
  • 4.10 Summary84
  • Chapter 5. Working with the XML Actions85
  • 5.1 Overview of Supporting Technologies85
  • 5.2 eXtensible Markup Language (XML)86
  • 5.3 eXtenstible Stylesheet Language (XSL)88
  • 5.4 XML Path Language (XPath)90
  • 5.5 Variable Mappings91
  • 5.6 Using the Select Attribute93
  • 5.7 Accessing Resources93
  • 5.8 extensible Stylesheet Language Transformation (XSLT)95
  • 5.9 Parsing XML Documents96
  • 5.10 Using <x:out> and <x:set>100
  • 5.11 <x:set> and <x:out> in Action101
  • 5.12 Using XML Documents to Determine Flow Control102
  • 5.13 Going Loopy with <x:forEach>106
  • 5.14 XML Transformation Actions110
  • 5.15 Transforming Content111
  • 5.16 Providing Parameters to Transformations113
  • 5.17 Summary115
  • Chapter 6. Working with the Internationalization and Formatting Actions117
  • 6.1 Locales118
  • 6.2 Why be Language Independent?119
  • 6.3 Localizing an Application Using Resource Bundles119
  • 6.4 Types of I18N Architectures120
  • 6.5 First, the <fmt: message> Action121
  • 6.6 Localization Context122
  • 6.7 Localization Context Sample123
  • 6.8 Preferred Locales123
  • 6.9 Formatting Locales124
  • 6.10 How Resource Bundles are Decided125
  • 6.11 Resource Bundle Lookup Samples129
  • 6.12 Using the LocaleSupport Class129
  • 6.13 Setting and Using Locales130
  • 6.14 Using Messages and Resource Bundles133
  • 6.15 Setting the Resource Bundle for <fmt.message>136
  • 6.16 Adding a parameter to <fmt: message>138
  • 6.17 Formatting Actions139
  • 6.18 Setting and Using Time Zones141
  • 6.19 Working with Timestamps143
  • 6.20 Formatting and Parsing Timestamps143
  • 6.21 Using and Parsing Timestamps148
  • 6.22 Working with Numbers150
  • 6.23 Encoding the Client Response158
  • 6.24 Summary160
  • Chapter 7. SQL Tag Library Using the SQL Actions161
  • 7.1 The Available <SQL> Actions162
  • 7.2 Working with the Data Source163
  • 7.3 Configuring a Data Source164
  • 7.4 Using a Data Source165
  • 7.5 Maxrows Configuration Setting165
  • 7.6 Configuring and Using a Data Source166
  • 7.7 How to Modify Data167
  • 7.8 Interfaces and Classes170
  • 7.9 Finding What You Need with <sql: query>172
  • 7.10 Passing Parameters to SQL Statements174
  • 7.11 Working with Result Sets177
  • 7.12 Dealing with Transactions181
  • 7.13 <sql: transaction> Action182
  • 7.14 How to Use <sql: transaction>182
  • 7.15 Summary185
  • 7.16 Conclusion186
  • Chapter 8. JSTL Quick Reference187
  • 8.1 Expression Language Syntax187
  • 8.2 Configuration Settings196
  • 8.3 Core Tag Library198
  • 8.4 XML Tag Library206
  • 8.5 SQL Tag Library211
  • 8.6 I18N Tag Library215
  • Index225
Book details
  • Vendor Elsevier S & T
  • SKU 9780126567557
  • ISBN-13 9780080495965
  • Author Spielman, Sue
  • Category Computers
  • Subject Object Oriented

Do you have questions about this book?

Ask an expert!

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.