Skip to content

Latest commit

 

History

History
30 lines (28 loc) · 1.43 KB

File metadata and controls

30 lines (28 loc) · 1.43 KB

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