Summary
5 days
This course is for beginning Java programmers who are familiar with the Java language and basic Web technologies, but are new to JDBC and JavaBeans and need to learn how to develop dynamic Web pages and e-commerce Web sites using Java Servlets, JavaServer Pages, and XML. Java for Web Development covers the Java topics used most often in the development of Web applications, including multi-threading, JDBC, Servlets, JavaBeans, JavaServer Pages, and XML.
Prerequisites
Students should be familiar with the Java language or have taken course JV002 Java Programming Language and web technologies like HTML. Familiarity with HTML is also helpful.
Objectives
- Understand the various components in a Java Web application
- Learn how Servlets and JavaServer Pages fit into the JEE Environment
- Understand the Model-View-Controller Design of a Java Web application
- Learn how to install and setup the Tomcat Web server and mySQL database server
- Understand the lifecycle of a Java servlet and JavaServer Page
- Understand the diretory structure of Java Web applications
- Understand the various scopes an object can have in a servlet container
- Learn how to include and forward a request to another Web component
- Learn how to create client session in JSP and servlets
- Understand how JavaBeans are used to create Data Access Objects
- Learn how to access data in a database using JDBC
- Learn how to write effective and useful servlets and JSP pages
- Understand the various elements of a JavaServer Page
- Learn how to create a custom JSP tag library
- Learn how to use the JSP Standard Tag Library
- Understand XML, including its uses, syntax, and advantages
- Learn how to develop Java applications that create and use XML documents
- Introduction to Hibernate
- Securing Web Applications
Course Outline
Module 1: Introduction to JEE Architecture What is J2EE J2EE APIs Benefits of J2EE
Module 2: Overview of Web Development History of Web Development Web Development Lifecycle The Roles in the Developing Web Applications
Module 3: Introduction to Servlets An Overview of Servlets Advantages of Servlets Lifecycle of a Servlet The Servlets API
Module 4 : Advanced Servlets HttpServletRequest HttpServletResponsce Request Parameters The Request Dispatcher Include and Forward Object, Request, Session and Application Scope Using Cookies in Servlets Session Tracking with Session Object Implementing Session Management
Module 5: Accessing Enterprise Services with Servlets Overview of JDBC Connecting to the Database Submitting the SQL statements Retrieving and processing data
Module 6: Introduction to JSP What is JSP Page How JSP Works JSP Invocation First JSP
Module 7: JSP Tags Expression tag Scriptlets Directives Declaration Comments JSP Actions Implicit Objects What are JavaBeans Example of a JavaBean JavaBeans in JSP Integrating Servlets and JSP Model 1 Model 2 Model-View-Controller (MVC) architecture
Module 8: Custom Tags
Overview of Custom Tags Create You Own Tags The Tag handler Class The TLD File Deploying JSP with Custom Tags
Module 9: Servlets and JSP Exceptions Exceptions Macro-Managing Exceptions Creating an Error page
Module 10: Servlets and JSP Filters Filters Creating Basic Filters Filter Mapping
Module 11: Expression Language Introduction EL Values Scope Expressions The param Expression Working with Maps Working with Lists EL Operations
Module 12: Standard Tag Library JSTL Expression Language Accessing Data The Dot Operator Accessing Collections The Core JSTL Tags
Module 13. XML What is XML? The main difference between XML and HTML Example XML in Web Development Data and Document Structure Well-Formed XML Creating the XML File Writing the Declaration Adding a Comments Defining the Root Element Attributes Nested Elements Nested Elements vs. Attributes XML Validation XML DTD External DOCTYPE Declaration Advantages of XML Schema XML Namespaces
Module 14: Hibernate Overview Hibernate Architecture Of Hibernate Code Example Creating Persistent Java Objects Mapping Persistent Object Hibernate Configuration File Inserting new record Querying the database Example Exercise
Module 15: Web Security Overiew How Web Security Works Security Definitions The Four Checks Filters FilterToBeanProxy FilterChainProxy Configuration The Filter Chain AuthenticationProcessingFilter The HttpSessionContextIntegrationFilter The ExceptionTranslationFilter FilterSecurityInterceptor AuthenticationManager AccessDecisionManager AuthenticationEntryPoint Summary Example
Appendix: Create a Connection to a Database Create a Table Intro to Servlets Servlets Request Parameters Simple JSP Custom Tags Filters JSTL |