Spring MVC beginner's guide : your ultimate guide to building web applications using all the capabilities of Spring MVC /


Amuthan G ; cover image by Aniket Sawant.
Bok Engelsk 2014 · Electronic books.
Annen tittel
Medvirkende
Sawant, Aniket, ( cover designer. )
Omfang
1 online resource (304 p.)
Opplysninger
"Learn by doing: less theory, more results"--Cover.. - Includes index.. - Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Configuring a Spring Development Environment; Setting up Java; Time for action - installing JDK; Time for action - setting up environment variables; Configuring a build tool; Time for action - installing the Maven build tool; Installing a web server; Time for action - installing the Tomcat web server; Configuring a development environment; Time for action - installing Spring Tool Suite; Time for action - configuring Tomcat on STS. - SummaryChapter 3: Control Your Store with Controllers; Defining a controller; Time for action - adding class-level request mapping; The role of a controller in Spring MVC; Handler mapping; Using URI template patterns; Time for action - showing products based on category; Using matrix variables; Time for action - showing the products based on filter; Understanding request parameters; Time for action - adding the product details page; Time for action - implementing a master detail view; Summary; Chapter 4: Working with Spring Tag Libraries; Serving and processing forms. - Time for action - configuring Maven on STSCreating our first Spring MVC project; Time for action - creating a Spring MVC project in STS; Spring MVC dependencies; Time for action - adding Spring jars to the project; Time for action - adding Java version properties in pom.xml; A jump-start to MVC; Time for action - adding a welcome page; The Dispatcher servlet; Time for action - configuring the Dispatcher servlet; Deploying our project; Time for action - running the project; Summary; Chapter 2: Spring MVC Architecture - Architecting Your Web Store; The dispatcher servlet. - Time for action - examining request mappingThe web application context; Time for action - understanding the web application context; The web application context configuration; View resolvers; Time for action - understanding InternalResourceViewResolver; Model View Controller; An overview of the Spring MVC request flow; The web application architecture; The domain layer; Time for action - creating a domain object; The persistence layer; Time for action - creating a repository object; The service layer; Time for action - creating a service object; An overview of the web application architecture. - Time for action - serving and processing formsCustomizing data binding; Time for action - whitelisting form fields; Externalizing text messages; Time for action - externalizing messages; Using Spring Security tags; Time for action - adding a login page; Summary; Chapter 5: Working with View Resolver; Resolving views; The redirect view; Time for action - examining RedirectView; Serving static resources; Time for action - serving static resources; Time for action - adding images to the product detail page; The multipart request in action; Time for action - adding images to the product page. - Using ContentNegotiatingViewResolver. - A step-by-step pragmatic approach to web application development using Spring MVC, with relevant screenshots and concise explanations. This book is aimed at helping Java developers who want to teach themselves Spring MVC, even if they have no previous experience with Spring MVC. It would be helpful to have a bit of familiarity with basic servlet programming concepts, but no prior experience is required.
Emner
Sjanger
Dewey
ISBN
1-78328-488-9
Hylleplass
QA76.76.A65 .G775 2014

Bibliotek som har denne