How to use JSTL (JSP Standard Tag Library)
Chapter 9
How to use JSTL
(JSP Standard Tag Library)
Murach's Java Servlets/JSP (3rd Ed.), C9
? 2014, Mike Murach & Associates, Inc.
Slide 1
Objectives
Applied 1. Use the JSTL core library with EL to add functionality to JSPs. 2. Use the documentation for the JSTL libraries to learn about other
JSTL capabilities.
Knowledge 1. Describe the use of these JSTL tags: out, forEach, forToken, if,
choose, import, and url.
Murach's Java Servlets/JSP (3rd Ed.), C9
? 2014, Mike Murach & Associates, Inc.
Slide 2
The primary JSTL libraries
Name Prefix URI
Core
c
Formatting fmt
SQL
sql
XML
x
Functions fn
Description
Core tags for common tasks such as looping and if/else statements.
Tags for formatting numbers, times, and dates so they work correctly with internationalization (i18n).
Tags for working with SQL queries and data sources.
Tags for manipulating XML documents.
Functions that can be used to manipulate strings.
Murach's Java Servlets/JSP (3rd Ed.), C9
? 2014, Mike Murach & Associates, Inc.
Slide 3
NetBeans with the JSTL 1.2 library added
A taglib directive for the JSTL core library
A JSTL out tag
Murach's Java Servlets/JSP (3rd Ed.), C9
? 2014, Mike Murach & Associates, Inc.
Slide 4
An introduction to JSTL
The JSP Standard Tag Library (JSTL) provides tags for common JSP tasks.
Before you can use JSTL tags within an application, you must make the jstl-impl.jar and jstl-api.jar files available to the application. To do that with NetBeans, you can add the JSTL 1.2 class library to your project.
Before you can use JSTL tags within a JSP, you must code a taglib directive that identifies the JSTL library and its prefix.
Murach's Java Servlets/JSP (3rd Ed.), C9
? 2014, Mike Murach & Associates, Inc.
Slide 5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- instructions on how to use baking soda to pass a drug test
- how to use money to make money
- how to use baking soda to pass drug test
- how to use to the utmost
- how to use standard deviation formula
- how to use excel to calculate
- how to use standard normal table
- how to use standard normal distribution table
- how to use microsoft to do
- how to use to do
- how to use xcopy to backup files
- how to use standard deviation