JSTL - JSP Standard Tag Libraries Workshop - 14 Hour Online Class or 2 Day Classroom Workshop
This workshop teaches HTML programmers working in a J2EE environment (e.g. Weblogic, Sun Application Server, JBoss, Oracle, Websphere) to use the JSP Standard Tag Libraries (JSTL) to present dynamic content in web pages without knowing Java. Covers an introduction to JSTL, JSP and J2EE web applications; Expression Language (EL); a summary of Tag Libraries including Core, Formatting and Internalization, XML, SQL and Functions; using JSTL including principles, variable manipulation, iteration, flow control, URL management, formatting and I18n, XML, SQL, Functions and exception handling; custom Tags and custom Functions.
Class Description:
This course will prepare the student to use JSTL to create web pages that include dynamic content - without the need to know Java. Topics covered include variable manipulation, iteration, conditional flow control, Expression Language, internationalization and localization, handling XML, handling SQL (for prototyping purposes), the JSTL function library, and the new simplified custom tag creation facilities. This class provides hands-on training to help you quickly learn JSTL.JSTL Overview: Most web sites need to present dynamic content from databases, XML, Java Beans, and other sources. One of the challenges facing page designers is to be able to utilize dynamic content without having to learn Java programming or having to rely heavily on Java programmers for assistance. The JSP Standard Tag Library (JSTL) provides industry standard tools for just this purpose.The JSP Standard Tag Library (JSTL) is a J2EE-based industry standard framework and tool for accessing, manipulating, and presenting dynamic content in JSP web pages. Prior to JSTL, such ordinary and typical procedures as iteration through a collection or array, conditional evaluation of code, as well as setting, retrieving, testing, and formatting of variables required Java code in embedded scriptlets. This made it difficult for web page designers who are not Java programmers to accomplish these important tasks without the help of a Java programmer. Other choices were to buy a non-standard tag library, such as Cold Fusion, or have Java programmers create custom tags. The popular Struts framework also provides tag libraries that overlap much of JSTL, but unlike JSTL, these are not built into Sun's J2EE version 1.4, and they must be acquired and installed separately.JSTL provides four tag libraries, a function library, and a versatile expression language designed for use by web page designers. JSTL also provides facilities for creating custom tags (and custom tag libraries) without the need to write Java code. Since JSTL works within Java Server Pages, the page designer or student should at a minimum understand how to create JSP pages and how to work with HTML tags.Audience: HTML programmers who are working in J2EE environment (e.g. Weblogic, Sun Application Server, JBoss, Oracle, Websphere) who want to learn the latest industry standard techniques for the presentation of dynamic content in web pages.Prerequisites:
|
Objectives: After successfully completing this course, the student will be able to take full advantage of the JSP Standard Tag Library and expression language. You will learn how to accomplish the following tasks:
Notes:
|
|
Topic Summary
- Introduction
- What is JSTL?
- Benefits of JSTL
- Software Compatibility, Acquisition, Installation, Configuration
- A Brief Introduction to JSP and J2EE Web Applications
- What is JSP
- JSP mechanics
- JSP constructs
- JSP directives
- Using an error page
- Scope
- Using Java Beans
- Deploying J2EE web applications
- Expression Language
- Scope
- Syntax
- General principles ${}
- dot notation
- bracket notation
- Implicit variables
- Operators
- Summary of Tag Libraries
- Core (c:)
- Formatting and internationalization (fmt:)
- XML (x:)
- SQL (sql:)
- Functions (fn:)
- Using JSTL
- General principles
- Variable Manipulation
- > c:out
- > c:set
- > c:remove
- Iteration
- > c:forEach
- > c:forTokens
- Flow Control
- > c:if
- > c:choose
- > c:when
- > c:otherwise
- URL Management
- > c:import
- > c:url
- > c:param
- Formatting and I18n (Internationalization)
- > fmt:setLocale
- > fmt:bundle
- > fmt:setBundle
- > fmt:message
- > fmt:param
- > fmt:formatNumber
- > fmt:formatDate
- > fmt:timeZone
- > fmt:setTimeZone
- XML
- > x:parse
- > x:out
- > x:set
- > x:forEach
- > x:if
- > x:choose
- > x:when
- > x:otherwise
- > x:transform
- > x:param
- SQL
- > sql:setDataSource
- > sql:query
- > sql:update
- > sql:param
- > sql:dateParam
- Functions
- > fn:length
- > fn:contains
- > fn:containsIgnoreCase
- > fn:endsWith
- > fn:escapeXml
- > fn:indexOf
- > fn:join
- > fn:split
- > fn:startsWith
- > fn:substring
- > fn:replace
- > fn:substringAfter
- > fn:substringBefore
- > fn:toLowerCase
- > fn:trim
- Exception Handling
- > c:catch
- Custom Tags
- Tag files
- Custom functions


