Course Description
This training course teaches you how to create Web interfaces using JavaServer Pages technology. It covers the very latest technologies that are now available to the Java Web application developer, including the JSP Standard Tag Library, Struts, JavaServer Faces, Portlets and the JSP Expression Language as well as JSP architecture, working with JavaBeans, and how to interface with Enterprise JavaBeans and Web services. The training course can be delivered using a number of development tools, including IBM Rational Application Developer, Oracle JDeveloper, Eclipse, or a basic text editor.The training course can be delivered on most deployment environments, including Tomcat, WebSphere, Oracle AS, JBoss, and WebLogic.
Target Student
Web developers who need to be able to build enterprise Java based Web applications using JSP.
Prerequisites
- Delegates must be familiar with XML, and they must also be familiar with Web technologies such as HTML and HTTP. Java programming experience is desirable but not essential for this training course. If you do not have Java, then some scripting experience would be extremely advantageous.
Delivery Method: Instructor led, group-paced, classroom-delivery learning model with structured hands-on activities.
The training course combines lectures with practical exercises that help the delegates to put what they have learned on the training course into practice. The exercises specifically build on what has been recently taught and are built up as the training course progresses.
Performance Based Objectives
At the end of this training course, students should be able to:
- Identify the core components of a Java Web application
- Write and deploy a Java Servlet
- Process form data from a Java Servlet
- Understand the JSP lifecycle
- Use scriptlets , expressions, and standard actions in a JSP
- Use the JSP Standard Tag Library (JSTL)
- Integrate XML into a Web application
- Use the JSP Expression Language (EL)
- Build applications using the Struts Framework
- Implement a Portlet and deploy it to a Portlet Container
- Add appropriate content metadata to JSP and other content items
- Develop interfaces to Web services
- Develop interfaces to Enterprise Java Beans
- Identify some of the architectural, design, and implementation considerations when working with JSP technology
Course Contents
1. Introduction to Web Applications
Java Servlets
JavaServer Pages
JavaBeans
Tag Libraries
2. Introduction to Java Servlets
What is a Java Servlet
Java Servlet lifecycle
Introduction to the Servlet API
How to develop and deploy Java Servlets
3. Session Tracking
Processing form data from Java servlets
Working with Cookies
Working with URL re-writing
Using the HttpSession object
4. Java Server Pages
What is a Java Server Page?
Directives in JSP
Scriptlets in JSP
Scripting Elements in JSP
Standard Actions in JSP
5. JavaBeans and JavaServer Pages
What are JavaBeans
Using JavaBeans with JSP
JSP and Servlet interaction
Web application architecture
6. The Expression Language (EL)
EL Syntax
EL Functions
EL Operators
7. JavaServer Page Tag Libraries
What are Tag Libraries
Components of a Tag Library
The JavaServer Pages Standard Tag Library (JSTL)
JSTL Tag Overview
8. The JSTL Core Tags
The Core Actions
Flow control actions
URL actions
Handling errors using catch
Outputting content using the out tag
9. Introduction to Jakarta Struts
Purpose of the Struts Framework
The Action Servlet
The ActionForm object
The Action object
The ActionMapping object
10. Implementing a Jakarta Struts Application
Building a Struts Application
Building the pages
Creating ActionForm objects
Creating Action objects
Configuring struts-config.xml
11. Introduction to JavaServer Faces (JSF)
What is JSF
Benefits of JSF over Struts
Overview of a JSF Application
Struts and JSF compared
12. JSP and Databases
JDBC Overview
The SQL Actions
Configuring Data Sources in Tomcat
Delegation and using JavaBeans
13. JSP and XML
The XML Actions
Applying XSLT transformations using JSTL
Processing DOM objects using JSTL
14. Portals and Portlets
What is a Portal
What is a Portlet
The JSR 168 Portlet Specification
Implementing a Portlet
Deploying a Portlet
15. Portlet States and Modes
Working with Portlet States
Working with Portlet Modes
Implementing a Multi Mode Portlet
16. Creating Tag Libraries
Creating tags
Deploying tags
17. Enterprise Java Beans and JSP
Overview of EJB
Invoking EJBs from a Web application
Design considerations
18. Securing Web Applications
Security options for Web applications
J2EE Principals and Roles
Declarative security
Programmatic security