H3AR7B3A7 / SpringServletStackXml

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)
  • 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

About

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


Languages

Language:Java 98.3%Language:CSS 1.7%