Java Logo

Goals


- Discover the MVC and MVC architectures 2

- Learn to use the Struts Framework

Program

Principle of MVC and MVC 2 architectures
Overview of MVC2 frameworks: Struts, JSF, Spring MVC
Struts 2: presentation / history, architecture, version
Development environment, plugins, JEE application server

Workshop: Installation of the development environment

Struts 2 project: libraries and dependencies
Log management
Configuration of the Struts 2 filter in the web.xml
Configuration of Struts taglibs
struts.xml file: structure, inclusions, constants, packages, actions
Sequence Action-Model-Vue and configuration

Workshop: Creation and execution of a Struts 2 project

Persistence spaces: page, request, session, application Session
handling: adding and retrieving attributes
Defining and using application variables
Creating and retrieving cookies

Workshop: Using the available persistence spaces

Struts 2 actions: types, implementation, constants
Management of parameters, return values
Mapping of actions by Xml
Mapping of actions by annotations
Dynamic management of the mapping
Types of results: dispatcher, redirect, redirectAction, chain, stream, …
Management of errors
Access to resources: request, response, context
Panorama of form tags
Integration of forms
Validation of forms
Management of error messages
Properties files and internationalization of views (i18n)
Management of types and conversions
Definition and configuration of custom interceptors
Management of the upload

Workshop: Implementation of several forms: creation, validation, processing

Management of page loading
Asynchronous requests:
– Communication (XMLHttpRequest object)
– Sending / processing of the response
– The Stream result action
– Struts AJAX / jQuery tags

Workshop: Implementation of asynchronous actions and partial data loads

Struts-Tiles: presentation, interest
Setup: configuration
Page model and use
Legacy of Tiles
Forward
Sitemesh: an alternative to Tiles

Workshop: Integration of templates and use

Presentation of Spring Core (IoC): interest, configuration
Dependency injection by Xml or annotations
Context retrieval and beans injection

Workshop: Coupling Struts with Spring

JPA: presentation, interest, implementations
Configuration of persistence in a Struts project
Mapping of entities
Queries and processing of results
Optimizations

Workshop: Implementing a DAO layer with JPA / Hibernate or JPA / EclipseLink

Duration

5 days

Price

£ 2695

Audience

Java / JEE Developers

Prerequisites

Knowledge of servlets and JSP

Reference

JAV100215-F

Sessions

Contact us for more informations about session date