JavaServer Pages
Revision: TE2405_20060318
Course Length:
2 Days
Course Description:
The JavaServer Pages (JSP) technology can be considered a macro interface to Servlet technology. This course shows you how to build interactive Web pages that separate presentation logic from business logic. The course discusses various JSP tags including directives, scripting elements and actions. The structure of interactive JSP web applications is described, including the interaction of HTML forms and JSPs. The course concludes with a discussion of some more advanced topics, such as cookies, thread issues and custom tags. Many example Web programs using JSP will be provided.
Who Should Attend:
This course is for programmers, developers, and project managers who will be involved with the development of an enterprise or e-commerce system using Java.
Benefits of Attendance:
Upon completion of this course, students will be able to:
- Describe the request/response paradigm.
- Understand the process of converting a JSP into a servlet.
- Understand the separation of roles between content developers and presentation developers.
- Use the various JSP components, such as declarations, expressions, and scriptlets.
- Use implicit objects such as request, response, and out, in any JSP.
- Use various directives such as include and page.
- Write simple JavaBeans.
- Use a JavaBean in a JSP.
- Use the JDBC within a JSP.
- Use custom tag libraries.
Prerequisites:
Experience in basic Web site development using HTML and some knowledge of XML, Java Programming and Servlets is required.
Course Outline:
- Chapter 1: JSP Fundamentals
- Introduction
- Simple JSP Components
- Declarations
- Expressions
- Testing the JSP
- Scriptlets
- Implicit Objects Introduction
- Scope of Variables
- From JSP to Servlet
- Chapter 2: Implicit Objects
- Introduction
- The out object
- The request object
- The response object
- The session object
- The application object
- Chapter 3: Directives, Actions, And JavaBeans
- Introduction
- The include directive
- The page directive
- JSP Actions
- JavaBeans
- JavaServer Pages and JavaBeans
- JSP Bean Example
- Deployment of the Bean
- Chapter 4: JSPs And Databases
- Examples of SQL Queries
- A Sample JSP using the JDBC
- Output of the Sample JSP
- Explanation of the Sample JSP
- Improvements
- Using the JDBC from a JavaBean
- Adding the Bean
- Chapter 5: Custom JSP Tags
- Using Custom Tags
- Types of Tags
- Defining Tags
- The Tag Element
- Simple Tags
- Tags with Attributes
- Including the Tag Body
- Optionally Including the Body
- Including the Body Multiple Times
- Appendix A: A Template Tag Library
- A Template Tag Library
- Deployment of the Custom Tag Files



