|
Source Code Archive
More Servlets and JavaServer Pages
Chapter 12: The JSP Standard Tag Library
To view source code for other chapters in this book, mouse over the table of contents bar on the left.
Source Code from Chapter
Note: right-click or shift-click on the links to download the associated file.
-
web.xml. Deployment descriptor. Reminder:
check the
current JSTL documentation--if you use an updated
JSTL version you'll almost certainly have
to change the entry for the
javax.servlet.jsptl.ExpressionEvaluatorClass parameter,
and also probably have to update the TLD aliases.
-
simple-loop-jr.jsp Simple loop (jr version). Requires the
styles.css
style sheet.
- styles.css.
Style sheet used by almost all JSP pages in this chapter.
-
simple-loop-jx.jsp. Simple loop (jx version)
-
inactive-interval-loop-jr.jsp. Looping with a designated
step size (jr version).
-
inactive-interval-loop-jx.jsp. Looping with a designated
step size (jx version). Requires the
StorePageContextTag tag.
-
StorePageContextTag.java. Stores the
PageContext reference in an attribute
of the PageContext. The reason for doing this is to
make it easier for JSTL jx tags to access the request,
response, pageContext, etc.
-
store-page-context.tld. TLD file for the library that
uses the
StorePageContextTag tag.
-
cookie-loop-jr.jsp. Looping down arrays (jr version).
-
cookie-loop-jx.jsp. Looping down arrays (jx version).
-
DefineCookies.java. Servlet that defines a few cookies,
then redirects the user to the
cookie-displaying page.
-
header-loop-jr.jsp. Looping down enumerations (jr version).
-
header-loop-jx.jsp. Looping down enumerations (jx version).
-
string-loop-jr.jsp. Looping down entries in a
String (jr version).
-
string-loop-jx.jsp. Looping down entries in a
String (jx version).
-
data-form.html. Form that sends data to
the ShowData servlet.
-
ShowData.java. Servlet that sets up a variety of data structures,
then forwards the request to a JSP page that
uses JSTL to display the values in the
data structures.
-
show-data-jr.jsp. Looping down multiple data types (jr version).
-
show-data-jx.jsp. Looping down multiple data types (jx version).
-
status-loop-jr.jsp. The jr version of a page that loops down a comma-delimited
String and displays status information each time around the loop.
-
status-loop-jx.jsp. The jx version of a page that loops down a comma-delimited
String and displays status information each time around the loop.
-
simple-token-loop-jr.jsp. Looping down the tokens in a
String (jr version).
-
simple-token-loop-jx.jsp. Looping down the tokens in a
String (jx version).
-
nested-token-loop-jr.jsp. Nested loops with different
delimeters (jr version).
-
nested-token-loop-jx.jsp. Nested loops with different
delimeters (jx version).
-
if-jr.jsp. Using the
if tag (jr version).
-
if-jx.jsp. Using the
if tag (jx version).
-
choose-jr.jsp. Using the
choose, when, and
otherwise tags (jr version).
-
choose-jx.jsp. Using the
choose, when, and
otherwise tags (jx version).
-
coin-toss-jr.jsp. Use of a local variable with the
choose tag
(jr version).
-
coin-toss-jx.jsp. Use of the
set tag with the choose tag
(jx version).
-
set.jsp. Using the
set tag (jx only).
-
expr.jsp. Using the
expr tag (jx only).
-
declare.jsp. Using the
declare tag (jx only).
- jsptl.war.
The entire
jsptl application bundled in
a WAR (Web ARchive) file.
URLs Referenced in Chapter
More Information
-
J2EE training courses from the author. Available on-site at your
company or at public venues.
- Free online version of
Core Servlets & JavaServer Pages.
Complete text of book in PDF.
-
Home page for Core Servlets and JavaServer Pages 2nd Edition (Vol 1).
Includes the table of contents, index, sample chapters, source code archive, etc.
-
Home Page for More Servlets and JavaServer Pages.
Includes the table of contents, index, source code archive, etc.
-
Free online version of More Servlets and JavaServer Pages.
- Servlet and JSP Programming Resources.
Download sites, servers, IDEs, tutorials, books, job listings, and more.
-
Tutorials and lecture notes on servlets, JSP, Struts, JSF, and Java 5.
PDF version free for all. PowerPoint version free for qualified university instructors.
- Servlet and JSP
programming resources. Specs, documentation, servers, IDEs,
hosting providers, books, training, etc.
- Java Programming Resources.
General resources on Java technology. Compilers, editors, IDEs, tutorials, books,
user forums, and more.
|