Spring MVC

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites

    Spring MVC - Presentation Transcript

    1. Spring MVC Yet Another Web Framework
    2. MVC for Java Web Applications
        • Model = Java POJO
        • View = JSP Pages
        • Controller = Java Servlet
    3. Spring's MVC Approach
        • Model = Java Map
        • View = Pluggable view technology (JSP, tiles, velocity, etc)
        • Controller = Spring controller classes
      •  
      •  
    4. The HTTP Request
    5. Spring MVC Overview
        • All calls go through DispatcherServlet
        • Spring beans configured in context XML file
    6. Handling Forms
        • Controllers - displays the form or processes the form submit (by detecting GET/POST)
        • Command - Java class that represents the form data
        • Validators - validates a class, usually your Command class
      •  
      • Logical breakdown of form processing:
        • formBackingObject()
        • onBindNewForm()
        • onBind()
        • onBindAndValidate()
        • onSubmit()
    7. Bonus features
        • Interceptors - do something before handing off to controller
        • HandlerExceptionResolvers - handle exceptions thrown from controllers
        • AbstractWizardFormController - support simple workflow pages (session-backed forms - think shopping cart check out)
    8. Demo
      •  
    9. References
        • http://static.springframework.org/spring/docs/2.5.x/api/
        • http://static.springframework.org/spring/docs/2.5.x/reference/spring-web.html

    + Theo NTheo N, 11 months ago

    custom

    1449 views, 3 favs, 0 embeds more stats

    Introduction to Spring MVC

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1449
      • 1449 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories