Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/h3ar7b3a7/springservletstackxml

Further exploration of the Spring servlet stack, using XML-based configuration.
https://github.com/h3ar7b3a7/springservletstackxml

servlet-stack spring-mvc xml-configuration

Last synced: 13 days ago
JSON representation

Further exploration of the Spring servlet stack, using XML-based configuration.

Awesome Lists containing this project

README

        

# Spring Web Application (XML-config version)

## What we did so far:
- Configured our dispatcher servlet
- Implemented simple custom error-page
- Added view-resolver
- Made simple get and post requests
- Added static resource handling (css)
- Added Internationalization (2 resource bundles)
- Added a way to upload a file to the server
- We will maybe use a db to upload to later
(We already know how to implement databases properly from previous projects)
- The service for this can be easily switched out
- Added an example of method validation on file name in 'FileUploadController'
- Added a Employee form (Spring form) with:
- Validation using a model & BindingResult
- Quick mongo implementation to show employees inserted by this form
- We will add proper dao for mongo and mySQL later
- Added birth form with:
- A Custom validator
- Type conversions using PropertyEditorSupport
(For other option: Converter, see [this](https://stackoverflow.com/questions/12544479/spring-mvc-type-conversion-propertyeditor-or-converter))
- Using multiple contexts (Added 'my-beans')
- Comparing scopes: request / session (we did something similar for 'singleton' and 'session' in a previous project)
- Page redirection with flash attributes, comparing 'old' and 'new'
- With RedirectView
- With ModelAndView

## Validation
fc