Welcome to the Standard Examples Web Application!
This web application includes a variety of sample JavaServer Pages (JSP) files
that showcase the JavaServer Pages Standard Tag Library (JSTL) tags specified
within the JSR-052 Expert Group.
Documentation
The JSTL
1.0 Specification developed by the JSR-052 expert group under the Java
Community Process is a complete JSTL 1.0 reference.
Documentation on the JSTL tags is available at http://jakarta.apache.org/taglibs/doc/standard-doc.
It is also available as the standard-doc web application of the standard taglib
release.
Examples
The JSTL examples are divided into the following categories:
The navigation bar at the top of each index page provides quick navigation to
each set of example pages.
Within the examples, the following icons allow you to examine the source code
as well as execute the example JSP page.
 |
Examine the source code of the example JSP page |
 |
Execute the example JSP page |
Infrastructure
The source code for the JSTL examples includes class startup.Init to
initilialize the objects used in the examples. This allows us to mimic the environment
that would normally be used within an MVC architecture: the Controller invokes
the business logic, saves the objects required by the web application into JSP
scoped attributes (usually request),
and then invokes the proper JSP page. For the sake of this examples
webapp, all objects are saved in the application scope.
The application attributes are:
- customers
A collection of Customer objects
- intArray
An array of int's
- stringArray
An array of Strings
- numberMap
A Map instance associating Integer objects with their Spanish names
- enumeration
An enumeration on numberMap from
above.
The classes of interest that hold the information manipulated by the JSP pages
are:
- Customer
- int key
- String lastName
- String firstName
- Date birthDate
- Address address
- Address
- String line1
- String line2
- String city
- String state
- String country
| standard taglib * implementation
of the JSP Standard Tag Library * |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.