Pro Spring MVC: With Web Flow [electronic resource] /
Deinum, Marten.author.
Serneels, Koen.author.
Yates, Colin.author.
Ladd, Seth.author.
Vervaet, Erwin.author.
Vanfleteren, Christophe.author.
Pro Spring MVC provides in-depth coverage of Spring MVC and Spring Web Flow, two highly customizable and powerful web frameworks brought to you by the developers and community of the Spring Framework. Spring MVC is a modern web application framework built upon the Spring Framework, and Spring Web Flow is a project that complements Spring MVC for building reusable web controller modules that encapsulate rich page navigation rules. Along with detailed analysis of the code and functionality, plus the first published coverage of Spring Web Flow 2.x, this book includes numerous tips and tricks to help you get the most out of Spring MVC, Spring Web Flow, and web development in general. Spring MVC and Spring Web Flow have been upgraded in the new Spring Framework 3.1 and are engineered with important considerations for design patterns and expert object-oriented programming techniques. This book explains not only the design decisions of the frameworks, but also how you can apply similar designs and techniques to your own code. This book takes great care in covering every inch of Spring MVC and Spring Web Flow to give you the complete picture. Along with all the best known features of these frameworks, you’ll discover some new hidden treasures. You’ll also learn how to correctly and safely extend the frameworks to create customized solutions. This book is for anyone who wishes to write robust, modern, and useful web applications with the Spring Framework.
Title Page; Copyright Page; Contents at a Glance; Table of contents; Foreword; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; What This Book Will Teach You; Who Is This Book For?; How to Read This Book; The Application Example; The Sample Code; How This Is Book Structured; A Thousand-Mile View of the Spring Ecosystem; Onward!; Contacting the Authors; Chapter 1: Configuring a Spring Development Environment; Prerequisites; Java Development Kit; Servlet Container; Integrated Development Environment; The Sample Application; A Bookstore Sample Application
The Build SystemDependency Management; The Gradle Build File; Building the Sample Application; Deploying the Sample Application; SpringSource Tool Suite (STS); Configuring STS for Gradle projects; Importing the Sample into STS; Running the Application on the SpringSource vFabric tc Server; Editing the Application; Summary; Chapter 2: Spring Framework Fundamentals; The Spring Framework; Dependency Injection; ApplicationContexts; Resource Loading; Component-Scanning; Scopes; Profiles; Enabling Features; Aspect-Oriented Programming; Web Applications; Summary
Chapter 3: Web Application ArchitectureThe MVC Pattern; Application Layering; Separation of Concerns; Spring MVC Application Layers; The Domain Layer; The User Interface Layer; The Web Layer; The Service Layer; The Data Access Layer; More Roads to Rome; Summary; Chapter 4: Spring MVC Architecture; DispatcherServlet Request Processing Workflow; The Workflow; Prepare a Request; Determine the HandlerExecutionChain; Execute the HandlerExecutionChain; Handle Exceptions; Render a View; Finish the Processing; The Request Processing Summary; The DispatcherServlet; Bootstrapping the DispatcherServlet.
Using web.xmlUsing web-fragment.xml; Using ServletContainerlnitializer; Using WebApplicationlnitializer; Configuring the DispatcherServlet.; Dispatcher Servlet Properties; The Application Context; Component Resolution; The Dispatcher Servlet's Default Configuration; The Spring @MVC Defaults; The Spring MVC Components; HandlerMapping; BeanNameUrlHandlerMapping; SimpleUrlHandlerMapping; ControllerBeanNameHandlerMapping; ControllerClassNameHandlerMapping; DefaultAnnotationHandlerMapping and RequestMappingHandlerMapping; HandlerAdapter; HttpRequestHandlerAdapter; SimpleControllerHandlerAdapter
SimpleServletHandlerAdapterAnnotationMethodHandlerAdapter; RequestMappingHandlerAdapter; MultipartResolver; Com monsM ulti partResolver; StandardServletMultipartResolver; LocaleResolver; AcceptHeaderLocaleResolver; CookieLocaleResolver; FixedLocaleResolver; SessionLocaleResolver; ThemeResolver; Cookie ThemeResolver; FixedThemeResolver; SessionThemeResolver; HandlerExceptionResolver; RequestToViewNameTranslator; ViewResolver; FlashMapManager; Summary; Chapter 5: Implementing Controllers; Introducing Controllers; Interface-based Controllers; Annotation-based Controllers
Configuring View Controllers
Includes bibliographical references and index.
Includes index.
Pro Spring MVC provides in-depth coverage of Spring MVC and Spring Web Flow, two highly customizable and powerful web frameworks brought to you by the developers and community of the Spring Framework. Spring MVC is a modern web application framework built upon the Spring Framework, and Spring Web Flow is a project that complements Spring MVC for building reusable web controller modules that encapsulate rich page navigation rules. Along with detailed analysis of the code and functionality, plus the first published coverage of Spring Web Flow 2.x, this book includes numerous tips and tricks to help you get the most out of Spring MVC, Spring Web Flow, and web development in general. Spring MVC and Spring Web Flow have been upgraded in the new Spring Framework 3.1 and are engineered with important considerations for design patterns and expert object-oriented programming techniques. This book explains not only the design decisions of the frameworks, but also how you can apply similar designs and techniques to your own code. This book takes great care in covering every inch of Spring MVC and Spring Web Flow to give you the complete picture. Along with all the best known features of these frameworks, you’ll discover some new hidden treasures. You’ll also learn how to correctly and safely extend the frameworks to create customized solutions. This book is for anyone who wishes to write robust, modern, and useful web applications with the Spring Framework.
Java (Computer program language).
Software engineering.
Java.
Software Engineering/Programming and Operating Systems.