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.
Java developers and programmers, specifically those doing presentation-level J2EE development.
Preface 1 Introduction 1.1 What Exactly Is the JSTL? 1.2 Why a JSP Standard Tag Library? 1.3 Why Now? 1.4 Why You Really Want to Use the JSTL 1.5 The Need for Encapsulation 1.6 Functional Overview 1.7 JSTL Tag Libraries 1.8 Getting Ready to Use the JSTL 1.9 The Road to the JSTL 1.9.1 Dynamic vs. Static Content 1.9.2 Using Dynamic Content 1.9.3 Using Dynamic Web Features 1.9.4 Server-Side Processing 1.10 Servlets to the Rescue 1.11 Hello My Friend Servlet 1.12 JavaServer Pages 1.13 When a JSP, When a Servlet? 1.14 Evolving JSP 1.15 Custom Actions in Action 1.15.1 Why Use a Custom Action 1.15.2 Hello My Friend Using Custom Actions 1.15.3 The TLD File 1.15.4 The Tag Handler 1.16 The Power of Tag Libraries 1.16.1 Need for a Tag Library 1.17 Making Life Easier, JSTL in Action 2 JSTL Basics 2.1 Environment Setup 2.2 Using the Book Examples 2.3 JSP Scopes 2.4 JSTL Scoped Variables 2.4.1 Var and Scope Attributes 2.4.2 Variable Visibility 2.5 Dynamic and Static Attributes 2.6 Handling Errors and Exceptions 2.7 Action Body Content 2.8 Configuration Settings 2.9 The Config Class 2.10 Summary 3 Using the Expression Language 3.1 Implicit Objects Available in the EL 3.2 Accessing Data Structures 3.3 EL Operators 3.3.1 Relational Operators 3.3.2 Other Operators 3.3.3 Using Operators 3.4 Automatic Type Conversion 3.5 Default Values 3.6 Summary 4 Working with the Core Actions 4.1 Writing Output to the JspWriter 4.2 Setting Variables 4.3 Removing Variables 4.4 Using 4.4.1 Handling Exceptions 4.5 Decisions, Decisions, Decisions—Conditional Actions 4.5.1 Simple Conditi
- No. of pages:
- © Morgan Kaufmann 2004
- 22nd August 2003
- Morgan Kaufmann
- eBook ISBN:
- Paperback ISBN:
An invaluable reference for any JSP developer's library. Sue makes the complicated seem simple with her conversational writing style and well thought out examples and analogies. -Matt Houser, J2EE Developer with The Washington Post and former Sun Microsystems Java Instructor.