Skip to main content

Instructor-led training

The JSP Standard Tag Library Training in Pickerington, Ohio

This two-day module introduces the JSTL, or JSP Standard Tag Library, actually a set of four custom tag libraries that establish a portable standard for common processing tasks in JSP.

What you'll learn

This two-day module introduces the JSTL, or JSP Standard Tag Library, actually a set of four custom tag libraries that establish a portable standard for common processing tasks in JSP. JSTL is a major part of the new scriptless authoring style encouraged (and enabled) by the JSP 2.0 specification. This module covers all four JSTL libraries in depth: *The core actions, which support JSP expressions for JSP 1.x containers, flow control for procedural processing in JSPs, and resource access *The formatting and internationalization/localization actions, which standardize formatted numeric and date/time output as well as multi-language support *The SQL actions, which dramatically simplify access to relational data from a JSP *The XML actions, which give JSPs a simple, powerful framework by which to parse, address and transform XML data using XPath and XSLT Each individual tag in each library is covered, with precise syntactic rules shown in a standard format in the student guide, and JSTL techniques and best practices are discussed for each library. An extensive set of example applications illustrates common usage of each major group of actions, and the module culminates with a wrap-up workshop that brings core, SQL, and XML techniques to bear in a single application.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Pickerington, Ohio or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Students should be well-versed in JSP page authoring. Knowledge of JSP 2.0 is a plus, but is not required; the module's primary audience is JSP 1.x authors.

Course Outline

Chapter 1. JSTL Overview

  • The JSP Standard Tag Library
  • The JSP Expression Language
  • EL Syntax
  • Type Coercion
  • Error Handling
  • Implicit Objects for EL
  • JSTL Namespaces
  • Using JSTL in a Page
  • The Core Actions
  • Going Scriptless
  • Object Instantiation
  • Sharing Objects
  • Decomposition
  • Parameterization

Chapter 2. The Core Actions

  • The JSTL Core Library
  • <c:out>
  • <c:set>
  • Gotchas
  • Conditional Processing
  • Iterative Processing
  • Iterating Over Maps
  • Tokenizing Strings
  • Catching Exceptions
  • Resource Access

Chapter 3. The Formatting and i18n Actions

  • The JSTL Formatting Library
  • Locales
  • Determining Locale
  • Time Zones
  • Setting Locale and Time Zone
  • Formatting and Parsing Dates
  • Formatting and Parsing Numbers
  • Internationalization
  • Working with Resource Bundles
  • Supporting Multiple Languages

Chapter 4. The SQL Actions

  • The JSTL SQL Library
  • Using Relational Data
  • Connecting with a DriverManager
  • Connecting via a DataSource
  • The Result Interface
  • Making a Query
  • Inserts, Updates and Deletes
  • Parameterized SQL
  • Transactions

Chapter 5. The XML Actions

  • The JSTL XML Library
  • Using XML
  • XML Data Sources
  • Parsing and Addressing
  • Using XPath in JSTL
  • XPath vs. EL
  • XPath Context
  • Implicit Objects for XPath
  • Conditional Processing
  • Iterative Processing
  • Changing XPath Context
  • Working with XML Namespaces
  • Using XSLT
  • Chaining Transformations
  • Reading XML from the Request Body
  • XML and SOAP Web Services

Appendix A. Appendix. Learning Resources

What makes JSTL harder than it looks

Each JSTL tag is simple. The difficulty is the number of overlapping mechanisms and how they interact. The syllabus builds in layers.

  • Expression language first. Chapter 1 covers EL syntax, type coercion, error handling and implicit objects before any library is used. Many JSTL bugs are really EL bugs: a value silently coerced, or a lookup that resolves in a different scope than expected.
  • Core actions. <c:out> and <c:set> look trivial, but the syllabus gives "Gotchas" their own topic. Conditional and iterative processing, iterating over maps, tokenizing strings and catching exceptions follow. The shift to scriptless pages happens here: replacing scriptlets with tags, and handling object instantiation, sharing, decomposition and parameterization without Java code in the page.
  • Formatting and i18n. Locale and time zone are separate concepts that are determined, set and overridden in different places. Formatting and parsing dates and numbers, resource bundles and multi-language support all depend on getting that order right.
  • SQL actions. Connecting with a DriverManager or a DataSource, working with the Result interface, queries, inserts, updates and deletes, parameterized SQL and transactions. The skill is knowing when queries belong in a page at all.
  • XML actions. The hardest chapter. XPath is not EL, and the syllabus covers the differences, XPath context and changing it, implicit objects for XPath, namespaces, XSLT, chained transformations, reading XML from the request body and XML in SOAP web services.

A common misconception is that JSTL is just a nicer syntax for scriptlets. In practice it is a set of conventions for scoped variables, error handling and output that must be learned as a system.

Who it suits and what to take around it

The course is a two-day, general-level module for developers who already author JSP pages. Its stated primary audience is JSP 1.x authors, and knowledge of JSP 2.0 is helpful but not required. It fits teams that maintain or migrate existing JSP applications and want to replace scriptlets with a standard tag set.

If your Java fundamentals need work first, the Java Programming courses and learning guide is the place to start. For related web-tier skills, consider these next steps:

Organizations on a different JSP or JSTL release can ask about tailored private training through a training proposal.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Cleaning up a legacy page set. A team might inherit pages full of scriptlets that loop over result collections and print values. The core actions (<c:forEach>, conditional processing, <c:set>) and EL implicit objects would let them move that logic out of Java code, with <c:catch> handling failures.
  • A multi-language customer page. A team might need dates, currency and text to follow the user's language and time zone. Locale determination, the date and number formatting actions and resource bundles are the relevant topics.
  • Showing an XML feed in a page. A team might receive XML from a partner system or in a request body. Parsing it, addressing nodes with XPath and applying an XSLT transformation would let them render it without a custom servlet. The XML namespaces topic covers a frequent trouble spot.

AI coding assistants and JSTL

AI coding assistants are useful for drafting repetitive markup: a table loop over a collection, a formatted-date block or a resource-bundle lookup. They also help translate scriptlet blocks into tag form.

They tend to fail in these areas:

  • Version mismatch. Generated pages may assume an EL or tag library setup that differs from your container, or mix taglib declarations from different generations.
  • EL versus XPath. Suggestions often use EL syntax inside XML actions, or ignore XPath context and namespaces.
  • Locale and time zone. Output may look right in the default locale while the setting and fallback rules are wrong.
  • SQL in the page. Assistants may concatenate user input into SQL instead of using parameterized SQL, creating injection risk. They also rarely get transaction boundaries right.
  • Output handling. Escaping behavior of output tags is easy to get wrong when content is user-supplied.

To verify, render each page against your actual container, test with several locales and time zones, and feed XML with namespaces and malformed input. Review every SQL action for <sql:param> use, and check that errors surface the way you expect.

Frequently asked questions

What level is this course?

It is a general-level, two-day module for developers who already write JSP pages. It is not an introduction to JSP or to Java.

What should I know before attending?

You should be well-versed in JSP page authoring. Knowledge of JSP 2.0 is a plus but not required, since the primary audience is JSP 1.x authors.

Which JSTL libraries does it cover?

All four: the core actions, the formatting and internationalization actions, the SQL actions and the XML actions. The course also covers the JSP expression language and the move to scriptless pages.

Can this be delivered privately for our team, onsite or online?

Yes. HSG delivers private training for organizations either onsite at the client's location or live online.

Can the content be customized?

Private courses can be customized, including tailoring to the technology versions your organization uses. Use the training proposal request to describe your environment and goals.

Training locations

The JSP Standard Tag Library training across the U.S. and beyond.

We provide private The JSP Standard Tag Library training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all The JSP Standard Tag Library training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.