Welcome to the standard-examples web application!
This web application includes a variety of sample JSP pages that showcase
the JSTL tags specified within the JSR-052
Expert Group.
Documentation
The JSTL
1.0 Specification developed by the JSR052 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 have been divided in the following categories:
The navigation bar at the top of each index page provides quick navigation
to each set of example pages.
When navigating the examples, the following icons will allow you to
look at the source code as well as execute the example JSP page.
 |
Look at 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 * |