Instructor-led training
The JSP Standard Tag Library Training in Lansdale, Pennsylvania
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
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Lansdale, Pennsylvania 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 TrainingPrerequisites
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:
- Struts applications render their views in JSP and lean heavily on tag libraries, so Fast Track to Jakarta Struts is a natural companion for teams supporting that framework.
- If the SQL actions have you thinking about where data access belongs, Fast Track to Hibernate 3.x covers persistence in a dedicated layer.
- For component-based web UIs, Fast Track to JavaServer Faces 2 (JSF 2) is a different view technology worth comparing.
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
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.