Live Chat
Monday - Friday 8am - 6pm EST Chat Now
Contact Us
Monday - Friday 8am - 8pm EST 1-866-716-6688 Other Contact Options
Checkout

Cart () Loading...

    • Quantity:
    • Delivery:
    • Dates:
    • Location:

    $

Java Web Development with Struts 2

New – Learn how to develop Web Applications using Struts 2 framework and some introduction to web security.

GK# 6899

Course Overview

TOP

This course will you teach you how to develop Web Applications using Struts 2 framework and some introduction to web security.

Schedule

TOP
  • Delivery Format:
  • Date:
  • Location:
  • Access Period:

$

What You'll Learn

TOP

This class combines lecture with hands-on experience and open ended discussion that will help the developer quickly understand all advantages of Struts 2 applications and create Struts 2 applications Eclipse and JBoss/ TomCat.

Outline

TOP
Viewing outline for:

Classroom Live Outline

Module 1: Introduction to Struts 2 Framework

  • Introduction
  • What is a Framework?
  • Struts 2 Overview
  • Struts 2 Implementation of MVC
  • Processing Request
  • Model – Action
  • View – Result
  • Interceptors
  • Exception Handling
  • The ValueStack and ONGL
  • Advantages of Struts 2
  • Struts 2 vs. Struts 1

 

Module 2: Struts 2 Architecture

  • Two Ways of Declaring Architecture
  • Declarative Architecture
  • XML Based Declarative Architecture
  • The struts.xml file
  • The struts.xml file – include tag
  • The struts.xml file – package tag
  • Actions
  • Actions –Single Result
  • Actions –Multiple Results
  • Request and Form Data
  • Accessing Business Services
  • Accessing Data from the Action
  • Value Stack
  • Example
  • Exercise

Module 3: Struts Configuration File

  • Overview
  • The struts.properties File
  • The struts.xml File (Package Element)
  • Package Inheritance
  • The struts.xml File (Include Element)
  • The struts.xml File (Action Element)
  • The struts.xml File (Result Element)
  • The global-results Elements
  • Results
  • Namespace Configuration
  • Namespace Example
  • The interceptor-related Elements
  • Exercise

Module 4: Action Classes

  • Action
  • What Does an Action Do?
  • Encapsulates Interaction with the Model
  • Provides Locus for Data Transfer
  • Returns Control String for Result Routing
  • Packaging Your Actions
  • Implementing Action Class
  • ActionSupport Class
  • ActionSupport Class Validate Method
  • Using Resource Bundles
  • Accessing Resources
  • Aware Interface
  • ServletContextAware Interface
  • ServletRequestAware Interface
  • SessionAware Interface
  • ServletResponseAware Interface
  • ModelDriven Interface
  • Preparable Interface
  • Example
  • Exercise

Module 5: The Persistence Layer

  • JDBC
  • Overview of JDBC
  • Connecting to the DataBase
  • Submitting the SQL statements
  • Retrieving and Processing Data
  • DB_Action Class
  • Data Access Object
  • Exercise
  • 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 6: The Interceptors

  • Overview
  • Invocation of an Action
  • ActionInvocation Class
  • Built-in Struts 2 Interceptors
  • Configuring Interceptors (struts.xml)
  • Setting and Overriding Parameters
  • Interceptor Interface
  • Create Your Own Interceptor
  • Example
  • Exercise

Module 7: Type Conversion

  • Introduction
  • Build in Converters
  • Primitives and Wrapper Classes
  • Customizing Error Messages
  • Custom Type Converters
  • Configuring the Framework
  • Example: Custom Type Converters
  • Exercise
  • Global Type Converters

Module 8: OGNL and Tags Library

  • Introduction
  • OGNL and Struts 2
  • The Value Stack
  • The ActionContext
  • Expression Language
  • Reading Value Stack Object Properties
  • Selecting the Root Object for OGNL
  • ValueStack Details
  • Working with List and Array
  • Working with Map
  • Invoking a Method
  • An overview of Struts tags
  • Using OGNL to Set Attributes on Tags
  • The Property Tag
  • The Set Tag
  • Bean Tag
  • UI Struts Tag Library
  • UI Input Tags
  • The Form Tag
  • The textfield, password Tags
  • The Submit Tag
  • The Reset Tag
  • The Checkbox Tag
  • Non UI (Generic) Tags
  • If Tag
  • Iterator Tag

Module 9: Validation Framework

  • Overview
  • Using a Validator
  • Validator Configuration
  • Validator Configuration (param)
  • Strurs Build-in Validators
  • Date Validator
  • Double Validator
  • requiredstring Validator
  • Example
  • Exercise
  • Writing a Custom Validator
  • Example
  • Exercise

Module 10: Internationalization

  • Introduction
  • Java Support for I18n
  • Struts 2 Support of i18n
  • Request_locale Parameter
  • Example
  • Exercise

Module 11: Inversion of Control

  • Introduction
  • Dependencies
  • Injecting Dependencies 
  • Setter Injection
  • Problem Description
  • Adding Spring to Struts 2
  • Web.xml
  • applicationContext.xml
  • struts.xml After Integration
  • Example
  • Exercise

Module 12: Advanced Topics

  • Alternative Method Invocation
  • Wildcard Method
  • Dynamic Method Invocation

Module 13: Securing Struts 2 Applications (Part 1)

  • Overview
  • 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
  • Securing Web Resources
  • Example
  • Securing Method Invocation
  • Example
  • View-Layer Security
  • Example
  • Summary

Module 14: Securing Struts 2 Applications (Part 2)

  • Final Project

Module 15:Converting Struts 1 Applications into Struts 2

  • Overview of Struts 1 and Struts 2
  • New Features in Struts 2
  • Example: Struts 1 Application
  • Action Classes in Struts 1
  • Struts 1 UML Diagram
  • ActionForm Class
  • Other Action Classes
  • The Conversion To Struts 2
  • Struts 2 UML Diagram
  • Action Classes in Struts 2
  • Summary

Prerequisites

TOP

3 year Java programming experience with Servlets, JSP, Custom tags, JSTL, or after taking JV002 and JV008 classes

Who Should Attend

TOP

This course is designed for individuals who are interested in learning more about Java Web Development with Struts.

Course Delivery

This course is available in the following formats:

Classroom Live

Receive face-to-face instruction at one of our training center locations.

Duration: 5 day

Virtual Classroom Live

Experience expert-led online training from the convenience of your home, office or anywhere with an internet connection.

Duration: 5 day

Request this course in a different delivery format.
Enroll