Course: Web Application Development with JSP & Servlets
วันที่: 2016-11-08 11:33:29.0
Back to Course List Page
Course: Web Application Development with JSP & Servlets
Register
This practical, application-oriented Java training course teaches Java Servlets, JDBC and JSP and shows how to use it to develop simple to complex database-driven Web applications. It is intended for experienced Java (J2SE) programmers who want to build Web applications or J2EE components and systems.
Duration: 24 hours (12 Sessions)
Price: 11400 Baht (VAT included)
Class Schedule: Monday 20.00-22.00, Wednesday 20.00-22.00, and Saturday 20:00-22:00
Course Goals
- Understand and appreciate the role of Java Servlets in the overall Java 2 Enterprise Edition architecture, and as the best Java solution to HTTP application development
- Use request and response objects provided to a servlet to read CGI parameters and to produce an HTML response
- Develop interactive Web applications using HTML forms and servlets
- Manage complex conversations with HTTP clients using session attributes
- Understand the role of JDBC in Java persistence code, and use JDBC for persistence in servlet applications
- Preserve portability and ease of administration for a servlet application by parameterizing servlet code, using initialization parameters, properties files, and JNDI
- Use JavaBeans classes to share complex business data between components
- Implement filters to adapt existing servlets with new features, and to maximize the decomposition of logic between vertical business functions and horizontal facilities
- Gain an in-depth understanding of database programming in Java using JDBC
- Learn the details of SQL programming through the JDBC interface
- Describe JavaServer Pages and their relationship to servlets and J2EE generally
- Describe how a JSP is translated into a servlet and processed at runtime
- Explain the use of directives on JSPs and outline the principal directives
- Implement simple JSPs that use Java code in declarations, expressions and scriptlets
- Enumerate and use the implicit objects available to scripting elements
- Implement an interactive Web application using HTML forms and JSP
- Use Java exception handling and JSP error pages to handle errors in JSP applications
- Implement session management for a JSP application
- Manage cookies to store client-specific information at various scopes and durations
- Use JavaBeans to implement effective interactive JSP applications
- Describe custom tags in JSP and explain how they are implemented, both using Java and JSP itself, and how they are used
- Discuss threading issues in JSP and describe the use of directives to control how threading is handled
- Describe the various uses of XML in JSP applications
- Deploy a logical Web application to a Web server in a WAR file
Course Prerequisites
Experience in the following areas is required: Java
Experience in the following areas would be beneficial: HTML and XML
Course Outline
- Web Applications
- Server-Side Programming
- Web Protocols and Web Applications
- Role of Web Servers
- Java Servlets
- Using Tomcat Web server
- Structure of a Java Servlet
- Servlets Architecture
- Servlets Architecture
- Servlet and HttpServlet
- Request and Response
- Reading Request Parameters
- Producing an HTML Response
- Redirecting the Web Server
- Deployment Descriptors
- Servlets Life Cycle
- Relationship to the Container
- Interactive Web Applications
- Building an HTML Interface
- HTML Forms
- Handling Form Input
- Application Architecture
- Single-Servlet Model
- Multiple-Servlet Model
- Routing Servlet Model
- Template Parsers
- Session Management
- Managing Client State
- Sessions
- Session Implementations
- HttpSession
- Session Attributes
- Session Events
- Invalidating Sessions
- Configuration and Context
- The Need for Configuration
- Initialization Parameters
- Properties Files
- JNDI and the Component Environment
- JDBC Data Sources
- Working with XML Data
- Filters
- Servlet Filters
- Uses for Filters
- Building a Filter
- Filter Configuration and Context
- Filter Chains
- Deploying Filters
- Database and SQL Fundamentals
- Relational Databases and SQL
- SQL Versions and Code Portability
- Database, Schema, Tables, Columns and Rows
- DDL - Creating and Managing Database Objects
- DML - Retrieving and Managing Data
- Sequences
- Stored Procedures
- Result Sets and Cursors
- Using SQL Terminals
- JDBC Fundamentals
- What is the JDBC API?
- JDBC Drivers
- Making a Connection
- Creating and Executing a Statement
- Retrieving Values from a ResultSet
- SQL and Java Datatypes
- SQL NULL Versus Java null
- Creating and Updating Tables
- Handling SQL Exceptions and Proper Cleanup
- Handling SQLWarning
- Advanced JDBC
- SQL Escape Syntax
- Using Prepared Statements
- Using Callable Statements
- Scrollable Result Sets
- Updatable Result Sets
- Transactions
- Commits, Rollbacks, and Savepoints
- Batch Processing
- Alternatives to JDBC
- Introduction to Row Sets
- Row Sets in GUI and J2EE programming
- Advantages of RowSets
- RowSet Specializations
- Using CachedRowSets
- 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 Coercio
- 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
Register