Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/h3ar7b3a7/springservletstackxml
- Owner: H3AR7B3A7
- Created: 2020-11-07T12:21:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T19:23:43.000Z (about 4 years ago)
- Last Synced: 2025-01-15T04:30:41.577Z (24 days ago)
- Topics: servlet-stack, spring-mvc, xml-configuration
- Language: Java
- Homepage:
- Size: 178 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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