Course Audience
This practical course shows the programmer how to build interactive Web pages using Sun’s new Java Server Pages (JSP) technology. With JSP you can separate the presentation from the business logic. JSP is both very simple to use and also very powerful in the way it can leverage other Java technologies, such as JavaBeans, EJB, JDBC. Java Server Pages depend on Servlets, but you do not need to be an expert in Servlets in order to effectively use JSP. Indeed, JSP makes it much easier to develop effective interactive Web pages that can run on multiple platforms.
Course Description
The course begins with an overview of Web server technology, showing where JSP fits in the overall scheme. The JavaServer Web Development Kit is set up and a simple servlet and a simple JSP are demonstrated. The overall architecture of JSP is described, including an outline of what happens when a JSP is processed. The various JSP tags are systematically discussed, including directives, scripting elements and actions. The alternative XML tag notation is described. The structure of interactive JSP web applications is described, including the interaction of HTML forms and JSPs. Exception handling and session management are covered. A miniature “e-commerce” web site is constructed as a demonstration. The role of components in Web applications is covered, including use of JavaBeans on JSPs. Web database programming is covered, including the development of a three-tier Web application accessing a database. The course concludes with a discussion of some more advanced topics, such as cookies, thread issues and custom tags. The course provides many example Web programs using JSP.
Prerequisites
Experience in Java Programming and in basic Web site development using HTML. Previous exposure to Beans and JDBC would be helpful but not essential.
TOPICS COVERED IN LECTURE & LAB
Web Server Fundamentals
- HTML and HTTP
- CGI
- ISAPI and Active Server Pages
- Servlets
- Java Server Pages
- Using JavaServer Web Development Kit (JSWDK)
- A Simple Java Server Page
|
JSP Architecture
- How JSPs Are Processed
- JSP Tags
- XML Notation
- Directives
- Scripting Elements
- Implicit Objects
Interactive JSP Applications
- HTML Forms
- Request-Response
- Exceptions
- Session Management
- A Simple E-Commerce Site
Using JavaBeans in JSP
- Separating Programming and Page Design
- Component Architectures
- JavaBeans
- JSP Bean Directives
- Trigger Properties
- Scope of Beans
- Creating JSPs Using Beans
Using JDBC in JSP
- Database Access from Web Servers
- JDBC
- Database Web Programming Using JSP
- Encapsulating a Table in a Bean
Advanced JSP Features
- Cookies
- XML and JSP
- Custom Tags
- Threads
|