Murach's Java Servlets and JSP (2nd Edition)
How to use the JSP Standard Tag Library (JSTL)

This chapter shows how to shows how to use the JSP Standard Tag Library (JSTL) with EL (covered in chapter 10) to reduce or eliminate scripting from your JSPs so they're easier to code, debug, and maintain.

Chapter 11 How to use the JSP Standard Tag Library (JSTL)
An introduction to JSTL

338

The JSTL libraries 338
How to make the JSTL JAR files available to your application 338
How to code the taglib directive 338
How to code a JSTL tag 338
How to view the documentation for a library 340
How to work with the JSTL core library 342
How to use the url tag 342
How to use the forEach tag 344
How to use the forTokens tag 346
Four more attributes for looping 348
How to use the if tag 350
How to use the choose tag 352
How to use the import tag 354
Other tags in the JSTL core library 356
The Cart application 358
The user interface 358
The code for the business classes 360
The code for the servlets and JSPs 364
t




Murach's Java Servlets and JSP

Learn more about this book

View the table of contents


More about the eBook