JSTL in Action

( 1 )


Introducing Web page authors and programmers to the JSP Standard Tag Library (JSTL), this guide covers all features of the JSTL 1.0 standard. Whether users need to add dynamic content to a static Web page or are in need of providing back-end code, nonprogrammers are shown how to manipulate XML, access relational databases, format text, internationalize Web applications, and introduce general-flow logic into JSP—all with HTML-like tags that are accessible to authors of Web pages. Also addressed are techniques for ...

See more details below
BN.com price
(Save 17%)$39.95 List Price
Other sellers (Paperback)
  • All (19) from $1.99   
  • New (6) from $11.88   
  • Used (13) from $1.99   
Sending request ...


Introducing Web page authors and programmers to the JSP Standard Tag Library (JSTL), this guide covers all features of the JSTL 1.0 standard. Whether users need to add dynamic content to a static Web page or are in need of providing back-end code, nonprogrammers are shown how to manipulate XML, access relational databases, format text, internationalize Web applications, and introduce general-flow logic into JSP—all with HTML-like tags that are accessible to authors of Web pages. Also addressed are techniques for utilizing and extending JSTL's functionality.

JSTL is a Java standard for developing dynamic web sites. It gives non-programmers access to powerful operations through HTML-like tags. This makes JSTL an evolutionary step forward in simplifying the Javaweb platform.

introduces and shows off JSTL's capabilities. It include slots of useful code snippets so you can start using JSTL quickly. Large, working examples show you how to tie JSTL's features together. The book shows how to manipulate XML, use relational databases, format text, internationalize web applications, and an advanced part of the book covers configuration and integration of Java code with JSTL.

This book is written both for programmers and page authors. The coverage is comprehensive and still manages to guide the reader through the subject gently and with humor.

Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
The whole idea of JSTL is to make Java’s power accessible to anyone who builds or runs web sites, whether they’re programmers or not. JSTL in Action takes that promise seriously. Even if you only know HTML, this book can help you implement some pretty slick server-side functionality. And if you’re already a Java programmer, you’ll love its thoroughness and insight -- no surprise, since the author was lead developer on Sun’s JSTL reference implementation.

Shawn Bayern starts with an overview of the simple ideas behind dynamic web content; JSP and XML, JSTL’s foundation technologies; and JSTL’s goals. In Part II, he walks you through nearly every JSTL tag, starting with the most fundamental -- those that handle simple decisions and loops. Gradually, with easy examples, he covers importing text; working with XML fragments; using JSTL’s database support (even transactions); and formatting numbers, dates, and locales. Pay especially close attention to the chapter on JSTL expressions. If you’re using JSTL, you can’t rely on JavaScript for expressions. Fortunately, JSTL’s expression language is simpler than JavaScript’s -- especially the way Bayern explains it.

Part III presents case studies -- starting with “small-scale” tasks like error handling and input validation, but moving on to sophisticated layout management, RSS channel delivery, registration, authentication, and personalization. The book ends with coverage aimed specifically at Java professionals, including JSTL configuration and custom tag development.

We’d be remiss if we didn’t note that Bayern’s a terrific writer -- and that goes for both his narrative and his samples. Highly recommended. Bill Camarda

Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks For Dummies®, Second Edition.

Java Pro Magazine
"Does a remarkably good job of unveiling relevant details...fluid, concise, entertaining, and informative."
A nicely written book...beginner-friendly on all levels...concentrates on practice rather than theory and specifications...
Pierre Delisle
... does a wonderful job at making beginners and experts alike fluent in JSTL. [Bayern is] a key expert and lead developer ...
JSTL Specification Lead, Sun Microsystems, Inc.
Mark Roth
Written by a highly knowledgeable and instrumental contributor, this book harnesses the power of JSTL .
JSP Specification Co-Lead, Sun Microsystems, Inc.
perfect coverage of JSTL, XML, and JSP ... for any web designer who works with Java developers on enterprise sites.
Java Architect, Genscape, Inc.
From The Critics
Assuming a working knowledge of HTML, this guide provides instructions for creating web pages without programming. The book explains each feature of JSTL and demonstrate its application with numerous examples. Charts, diagrams, and screen captures illustrate the techniques and principles described. The source code is available on a free companion web page. Bayern is a research programmer at Yale University. Annotation c. Book News, Inc., Portland, OR
Read More Show Less

Product Details

  • ISBN-13: 9781930110526
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 8/5/2002
  • Series: In Action Series
  • Pages: 480
  • Product dimensions: 7.50 (w) x 9.32 (h) x 0.97 (d)

Meet the Author

Shawn Bayern is a research programmer at Yale University, the reference-implementation lead for the JSTL, and the coauthor of Web Development with Java Server Pages. He lives in New Haven, Connecticut.

Read More Show Less

Table of Contents

Preface xix
Acknowledgments xxi
About this book xxiii
About the cover illustration xxvii
Part 1 Background 1
1 Dynamic web sites 3
2 Foundation: XML and JSP 15
Part 2 Learning JSTL 41
3 The expression language 43
4 Controlling flow with conditions 77
5 Controlling flow with loops 95
6 Importing text 115
7 Selecting XML fragments 139
8 Working with XML fragments 153
9 Database-driven pages 181
10 Formatting and internationalization 215
Part 3 JSTL in action 249
11 Common tasks 251
12 Dynamic features for web sites 279
13 Case study in building a web site 301
Part 4 JSTL for Programmers 327
14 Control and performance 329
15 Using JSTL to develop custom tags 361
A JSTL reference 389
A.1 Expression language syntax 390
A.2 Core tag library 392
A.3 XML tag library 397
A.4 Database tag library 401
A.5 Formatting tag library 404
B JSTL API (for developers) 409
B.1 Configuration variables 410
B.2 Conditions and loops 413
B.3 Interoperating with JSTL's database tags 415
B.4 Using JSTL's localization algorithms 417
C Database tags and SQL 421
C.1 SQL and [left angle bracket]sql:update[right angle bracket] 422
C.2 SQL and [left angle bracket]sql:query[right angle bracket] 427
C.3 SQL miscellany 429
C.4 Summary 430
D References and resources 433
D.1 JSP Standard Tag Library 434
D.2 XML-related references 435
D.3 Databases 435
D.4 Related standards 436
D.5 Miscellaneous references 437
Index 439
Read More Show Less

Customer Reviews

Average Rating 4
( 1 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted August 5, 2002

    Good book on JSTL

    Those interested in custom tags or third party tag libraries may want to purchase the book. Having read the official specification a dozen times or more, some of the finer details can be hard to grasp. JSTL includes alot of features, but specifications are often written for experts in the field and are not always obvious to those outside of the expert group. Even though I've been using JSP since 0.9 spec, there's plenty of valuable information contained in shawn's book. If you like to see examples of how things work, this book will help clarify a lot of ambiguities.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)