JVSP - Java Server Pages
| Categories |
Java Training, Programming Training, Internet Training |
| Duration |
4 days (28 hours) |
| Pre-requisites |
HT1 - Introduction: HTML and the Web and some Java development experience are required.
|
|
|
|
| Courseware |
JVSP-OBJ-01 (498 pages) |
| Price |
$1580 |
| Notes |
This Java Server Pages course teaches skills in JavaServer Pages, or JSP, which is the standard means of authoring dynamic content for Web applications under the Java Enterprise platform.
|
Learn Java Server Pages! This course addresses JSP 2.0, including older features such as scriptlets, but focuses on newer features and techniques, including JSP expressions and the JSTL. At the end of the course, students will be well prepared to author JSPs for small- or large-scale Web applications, either using only a text editor, or using an authoring tool. During this course, students will become familiar with the
fundamentals of HTML and HTTP in the World Wide Web; JavaServer Pages and their relationship to servlets and J2EE generally; how a JSP is translated into a servlet and processed at runtime; the use of directives on JSPs and outline the principal directives; simple JSPs that use Java code in declarations, expressions and scriptlets; use of the implicit objects available to scripting elements; interactive Web application using HTML forms and JSP; Java exception handling and JSP error pages in JSP applications; session management for a JSP application; use of cookies to store client-specific information at various scopes and durations; JavaBeans to implement effective interactive JSP applications; custom tags in JSP and how they are implemented, both using Java and JSP itself; threading issues in JSP and the use of directives to control how threading is handled; the various uses of XML in JSP applications; how to deploy a logical Web application to a Web server in a WAR file; the use of the JSP expression language to simplify dynamic page output; JSP expressions and JSPs that use them in favor of scripts; JSPs that use basic JSTL actions to simplify presentation logic; decompose a JSP application design into fine-grained, reusable elements including JavaBeans, custom tag handlers and tag files that use JSTL; core JSTL actions to complement standard actions, custom actions, and JSP expressions for seamless, script-free page logic; direct conditional and iterative processing of page content by looping through ranges of numbers, over elements in a collection, or over tokens in a master string; set locale and time zone information in JSPs, and use them to correctly format numbers, dates and times for all clients; resource bundles to manage application strings, and produce the appropriate strings at runtime for a particular client locale; locate a data source, query for relational data, and parse result sets; perform updates, inserts and deletes on relational data using SQL actions; manage queries and updates in transaction contexts; derive information from parsed XML content using XPath expressions; conditional processing and loops based on XML information; application of XSLT transformations to XML content and implementation of a simple Web service that reads and writes SOAP.
Module 1. Introduction to JavaServer Pages
Web Applications
The World Wide Web
HTML
Web Servers
HTTP
Dynamic Web Pages
CGI
Java Web Technologies
Servlets
JSP
JSP Architecture
JSP Containers
Servlet Architecture
Page Translation
Types of JSP Content
Directives
Content Type
Buffering
Scripting Elements
JSP Expressions
Standard Actions
Custom Actions and JSTL
Objects and Scopes
Implicit Objects
JSP Lifecycle
Scripting Elements
Translation of Template Content
Scriptlets
Expressions
Declarations
Dos and Don’ts
Implicit Objects for Scriptlets
The request Object
The response Object
The out Object
Interactive JSP Applications
HTML Forms
Reading CGI Parameters
JSPs and Java Classes
Error Handling
Session Management
The Session API
Cookies and JSP
Using JavaBeans
Separating Presentation and Business Logic
JSP Actions
JavaBeans
Working with Properties
<jsp:useBean>
<jsp:getProperty> and <jsp:setProperty>
Using Form Parameters with Beans
Objects and Scopes
Working with Vectors
The Expression Language and the JSTL
Going Scriptless
The JSP Expression Language
EL Syntax
Type Coercion
Error Handling
Implicit Objects for EL
The JSP Standard Tag Library
Role of JSTL
The Core Actions
Using Beans with JSTL
The Formatting Actions
Scripts vs. EL/JSTL
Advanced JSP Features
Web Components
Forwarding
Inclusion
Passing Parameters
Custom Tag Libraries
Tag Library Architecture
Implementing in Java or JSP
Threads
Strategies for Thread Safety
XML and JSP
JSP for Web Services
Module 2. The JSP Standard Tag Library
Effective JSTL
The JSP Standard Tag Library
JSTL Namespaces
Going Scriptless
Object Instantiation
Sharing Objects
Decomposition
Parameterization
The Core Actions
The JSTL Core Library
<c:out>
<c:set>
Gotchas
Conditional Processing
Iterative Processing
Iterating Over Maps
Tokenizing Strings
Catching Exceptions
Resource Access
The Formatting and i18n Actions
The JSTL Formatting Library
Locales
Determining Locale
Time Zones
Setting Locale and Time Zone
Formatting and Parsing Dates
Formatting and Parsing Numbers
Internationalization
Working with Resource Bundles
Supporting Multiple Languages
The SQL Actions
The JSTL SQL Library
Using Relational Data
Connecting with a DriverManager
Connecting via a DataSource
The Result Interface
Making a Query
Inserts, Updates and Deletes
Parameterized SQL
Transactions
The XML Actions
The JSTL XML Library
Using XML
XML Data Sources
Parsing and Addressing
Using XPath in JSTL
XPath vs. EL
XPath Context
Implicit Objects for XPath
Conditional Processing
Iterative Processing
Changing XPath Context
Working with XML Namespaces
Using XSLT
Chaining Transformations
Reading XML from the Request Body
XML and SOAP Web Services