JSP Tag Libraries

Gal Shachor, Adam Chace, Magnus Rydin

2001 | 656 pages | B&W
ISBN: 193011009X

Out of Print $44.95 Softbound print
$35.99 eBook edition (PDF only)



JSP Tag Libraries is a bible for serious JSP developers. The reader will become acquainted with the world of custom JSP tags--new JSP technology that is beginning to have an enormous impact on the way people are developing JSP.

JSP tags are Java components that can be used from within a JSP file. By representing these components as tags, code authors can open up their JSP development to the everyday content developer as well as improve their code reuse and separation between presentation and business logic.

The book is fully loaded with many real-world tags including tags to perform iterations, access databases, EJBs, email systems and JavaBeans. To make the tag usage even more real, the book also offers two full-scale case studies in which the reader will see how tags can be used in the context of:

  1. e-Commerce applications
  2. WAP applications that work with current cellular phones

This book covers all aspects of JSP Tag development for Scriptlet-free generation of online content. It focuses on reusable component-centric design via JavaBeans and custom tags to separate presentation from implementation.

JSP Tag Libraries includes the following:

  1. Working with Java beans from within custom JSP tags
  2. Performing conditions with custom JSP tags
  3. Iterating with custom JSP tags
  4. Database access custom JSP tags
  5. J2EE integration and custom JSP tags
  6. Two full scale use cases demonstrating custom tag usage in e-Commerce and WAP applications

Translation rights for JSP Tag Libraries have been granted for Brazil, Korea, and Japan. If you are interested in learning where to buy this book in a language other than English, please inquire at your local bookseller.


Gal Shachor has been developing server side web applications since early 1995. He became dedicated to Java then and has never turned back. In the past Gal was an active developer of IBM's WebSphere application server. Currently he works for IBM research and develops high-end application servers. In his spare time Gal consults and instructs in subjects ranging from Servlets to Server side Java in general. He lives in Yokneam, Israel.

Magnus Rydin, an architect at Cypoint, has been developing server side applications since 1995, mostly targeted at e-business and intranet solutions. Working with proprietary systems such as Microsoft Site Server and IBM Net.Commerce, Magnus entered the server/jsp arena and became devoted to J2EE application development. He also participates in the Sun Java expert groups for JSP 1.1/Servlet 2.3 and the expert group devoted to bringing forward a standard Tag library. In his spare time, he writes tutorials for the Orion Application Server. Magnus lives in Helsingborg, Sweden.

Adam Chace is an avid Java developer who has been building wired and wireless web applications with server-side Java for over four years. He's contributed software design and development for companies like IDG, CMGI, Sheraton Hotels and UUNet. Today, Adam is a Principal Consultant and co-founder of Chalk Creek Software, a consulting firm specializing in Internet development using Java. Adam also enjoys speaking at conferences and writing for industry publications. He lives with his wife, Heather in Massachusetts.


The Table of Contents as well as Chapters 3 and 10 of JSP Tag Libraries are available here in Portable Document Format (PDF); you need Adobe's free Acrobat Reader software to view them. You may download Acrobat Reader here.

Table of Contents (65 Kb)

Download Chapter 3 (400 Kb)

Download Chapter 10 (250 Kb)


"The authors cover every aspect of developing and using JSP Tags. All the examples are annotated in detail. You quickly learn every detail you need to start developing sophisticated professional Tags...extremely well written and edited...Every person or organization developing JSP's should definitely get copies of this book!"

"JSP Tag Libraries is published by a small book company (Manning Publications) known for writing books of very good quality...and should be part of every developer's library...This is the first book on this topic that not only covers the nuts and bolts of using tags, but also shows how it can fit into your overall architecture...It doesn't read like a manual but more like a conversation, developer to developer...I look forward to other books by these authors and would recommend them without delay."
     --Java Developers Journal, October print issue & online at http://www.sys-con.com/java/article.cfm?id=1130

"...covers all aspects of JSP Tag development for Scriptlet-free generation of online content. JSP Tag Libraries is a bible for serious JSP developers."

"Another JSP offering from Manning hits home...JSP Tag Libraries provides the experienced JSP developer with the foundation to create well-designed, custom tag libraries. Providing a more than adequate foundation of the big picture of the Web environment, this book offers step-by-step instructions for building libraries meant for the page designer to use, requiring no Java coding."
     --Web Builder Magazine

"The book does a great job of explaining the life cycle of a JSP tag, which seems to be one of the most confusing aspects for those new to JSP custom tag development. It provides useful tips and techniques for developing custom tags, and outlines some of the common pitfalls. Also, this book contains some very good examples of how to develop custom tags."

"...a great resource for those with some experience with custom tags but it also provides a great introduction for those that are new to the topic. I have written several custom JSP tags and I wish this book had been available when I started, it would have saved lots of time. All of the issues I ran into during my development efforts have been clearly outlined in this book. I highly recommend this book for anyone interested in JSP custom tags."
     --Fort Worth Java User Group


The source code for JSP Tag Libraries is contained in three separate ZIP files. You will need unzip software to access the file. Both freeware and shareware unzip software can be found at www.download.com.


examples.zip (265 Kb)
cosmetics.zip (468 Kb)
cosmetix.zip (356 Kb)
JavaMail (mail.jar 275 Kb)
figure_7_2.zip (HTML file used to create Figure 7.2.  Use the link at the left, then view the page source to see how it was created.)