Java: Under the Hood™
JavaServer Pages
JavaServer Pages (JSP) is a technology
used for creating dynamic Web page content. JSP is an extension
of the servlets API, and is a combination of HTML and Java code.
JSPs also use JavaBeans extensively.
The goal of this course is to understand the goal of JavaServer
Pages and learn how to write and deploy them. This course is typically
offered with the servlets course and
the JDBC course.
Course Length:
1.5 days
Audience:
This course is intended for Web site
developers who have a good working knowledge of the Java language.
Outline
- Overview of Java Server Pages:
Web pages with dynamic
content.
- JSP Lifecycle:
How JavaServer Pages really work.
- "Hello, JSPs":
A simple JavaServer Page.
- JSP Objects:
The implicit objects of JSP and their scope.
- Comments: Adding
comments to a JavaServer Page.
- Includes:
The include directive and request-time includes.
- Declarations: Declaring
variables or methods.
- Expressions: Adding
expressions to a JavaServer Page.
- Scriplets:
Embedding Java code within a JSP.
- Page Directive:
Specifying options for the page.
- Page Forwarding:
The request forward directive.
- JavaBeans:
Using JavaBeans within JSPs.
- The useBean Directive:
Making a bean available.
- Bean Properties:
The setProperty and getProperty tags.
- Custom tags:
Creating custom JSP tags.
- The tagLib Directive:
Loading a set of custom tags.
- Overview of JavaServer Pages:
Dynamic Web page development.
- A Simple JSP: An introduction
to the JSP syntax.
- Using JavaBeans with JSP:
Determining bean properties.
- Scriplets: Java code within
the HTML.
- The Request Object: Accessing
information about the HTTP request.
- Servlets and JSP
- The JSP Tags
- Summary
|