- Tel: +44 (0)1275 859666
EC72 - Spring MVC Programming Workshop - 3 Days
Course Description
Customisation
For on-site courses (i.e. at your premises), we are more than happy to tailor the course agenda to suit your exact requirements. In many cases, we are able to build your in-house standards and naming conventions into the delivered course.
Course Details
- INTRODUCTION TO SPRING MVC
- DispatcherServlet: Front Controller Design Pattern
- Under The Covers - From Request To View
- Basic Example
- Model Data
- Views
- Controllers
- Deployment Descriptor
- Spring Context for Servlet
- Under The Covers - From Request To View
- PROJECT STRUCTURE
- Web Project Structure
- Directory Structure for WebContent Folder
- Directory Structure for WebContent Folder
- CONFIGURATION
- web.xml
- applicationContext.xml
- Dispatcher Context
- Dispatcher Context - Scanning For Annotated Controller Classes
- Dispatcher Context - Handler Mappings
- Dispatcher Context - View Resolvers
- applicationContext.xml
- CONTROLLERS
- Defining Controllers: @Controller annotation
- Autowiring Dependencies To Controllers: @Autowired
- Mapping Requests: @RequestMapping
- URI Templates and @PathVariable
- Controller Methods Input Arguments
- Binding request params to Objects
- Binding Request Parameters To Method Parameters With @RequestParam
- Returning From Controllers
- Void Controller Methods
- Returning Logical View Names
- The WebDataBinder
- Initialising With @InitBinder Methods
- Initialising With AnnotationMethodHandlerAdapter
- Initialising Property Editors
- Allowed and Required Fields
- Allowing Direct Field Access
- Redirecting
- Refresh Problem And Redirect After Post Solution
- Passing Data When Redirecting
- Redirecting to a JSP
- Forwarding
- Storing Attributes In The Session Using @SessionAttributes
- Session Status
- Enriching The Model: @ModelAttribute Methods
- Autowiring Dependencies To Controllers: @Autowired
- VIEWS
- Spring JSP Form Tags
- Common Attributes
- Tag
- Tag
- Checkboxes, default and empty fields
- Tag
- Common Attributes
- JSTL: JAVASERVER PAGES STANDARD TAG LIBRARY
- JSTL Expression Language
- Nested References
- Variables
- Using The [] Operator
- Implicit Objects
- Operators
- Core Tags
- Variable Support Tags
- Flow Control Tags
- Iterator Tags
- URL Generation (c:url)
- Miscellaneous Tags
- Internationalisation (I18n) Tags
- Messaging Tags
- Formatting Tags
- Functions
- Nested References
- VIEW RESOLVERS & VIEW TYPES
- View Resolvers
- ResourceBundleViewResolver
- BeanNameViewResolver
- XmlViewResolver
- UrlBasedViewResolver
- InternalResourceViewResolver
- TilesViewResolver
- View Types
- InternalResourceView
- JstlView
- TilesView
- ResourceBundleViewResolver
- INTERNATIONALISATION (I18N)
- Resource Bundles
- Locale Resolution
- Internationalisation
- Setting the locale programmatically
- Internationalisation for Views
- View Resolution
- Dynamic Page Content
- Locale Resolution
- BINDING AND VALIDATION
- Property Editors
- Registering Property Editors
- Custom Property Editors
- Programmatic Validators
- Jakarta Commons Validator
- Valang (Va-lidation Lang-uage)
- Bean Validation (JSR-303)
- Displaying Errors for Fields
- Registering Property Editors
- ADAPTORS AND INTERCEPTORS
- Handler Adapters
- Handler Interceptors
- Handler Interceptors
- ERROR HANDLING
- Programmatic Error Handling
- Hard-Coded Error Messages
- Messages From The Resource Bundle
- Uncaught Exceptions & System Exceptions
- Exception Resolvers
- @ExceptionHandler
- Hard-Coded Error Messages
- TILES
- Configuring Spring for Tiles
- Using Tiles definitions as Views
- Templates
- layout.jsp:
- Definitions
- tiles-definitions.xml:
- Using Tiles definitions as Views
- TESTING
- Unit Tests
- Spring Mock Classes
- ReflectionTestUtils
- Using Spring With Unit Tests
- Direct Field Access With Spring Configuration
- Assembly (aka Integration) Tests
- Spring Mock Classes