MVC 1.0 - by Example
summary
Action-based MVC 1.0 (JSR 371) is a small API built on JAX-RS that reuses CDI, Bean Validation and view engines (JSP/JSF, Thymeleaf, etc.), adds a Models map and BindingResult for per-field validation, and introduces a redirect scope (flash) to implement POST‑Redirect‑GET. The Ozark runtime is the Ozark reference implementation tied to Jersey for demos, provides @Controller/@View annotations, CSRF support via @CSRFValid, CDI events for before/after controller and view, and the generated NetBeans CRUD app runs and demonstrates it end-to-end.
AI-written summary · about
chapters (28)
- 0:00Introduction and speaker background
- 1:04Why MVC 1.0 now
- 3:53Action vs component-based MVC
- 6:46Spring MVC vs Struts 2 adoption
- 8:13Building MVC 1.0 on JAX-RS
- 8:57Creating a simple controller
- 10:24Returning views from controllers
- 12:54View handling options
- 14:41Model handling with CDI and Models
- 16:52Bean validation support
- 19:01Binding result for validation
- 20:27Custom view engine support
- 22:15CDI events in MVC
- 23:21Security and CSRF protection
- 25:59Redirect scope for PRG pattern
- 28:27Live demo setup
- 29:11Minimal MVC 1.0 project setup
- 31:16Simple hello world example
- 33:28CDI-scoped model example
- 34:51Post-redirect-get pattern demo
- 36:24Form validation and error handling
- 38:09Implementing PRG with redirect scope
- 40:16Adding CSRF protection
- 41:44NetBeans MVC tooling support
- 42:50Code generation with NetBeans plugin
- 45:21Tooling and resources summary
- 46:03Key takeaways and conclusion
- 47:49Q&A and closing
