LEADER 06314nam 2200733Ia 450 001 9910438101503321 005 20200520144314.0 010 $a9781430243786 010 $a1430243783 024 7 $a10.1007/978-1-4302-4378-6 035 $a(CKB)3460000000120330 035 $a(EBL)1156037 035 $a(OCoLC)831116025 035 $a(SSID)ssj0000878718 035 $a(PQKBManifestationID)11479429 035 $a(PQKBTitleCode)TC0000878718 035 $a(PQKBWorkID)10836073 035 $a(PQKB)11537457 035 $a(DE-He213)978-1-4302-4378-6 035 $a(MiAaPQ)EBC1156037 035 $a(CaSebORM)9781430243779 035 $a(PPN)168290170 035 $a(OCoLC)826647557 035 $a(OCoLC)ocn826647557 035 $a(EXLCZ)993460000000120330 100 $a20130204d2013 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 14$aThe definitive guide to Grails 2 /$fJeff Scott Brown, Graeme Rocher 205 $a1st ed. 2013. 210 $a[New York] $cApress $cDistributed to the book trade worldwide by Springer Science+Business Media New York$dc2013 215 $a1 online resource (350 p.) 225 1 $aThe expert's voice in web development 300 $aIncludes index. 311 08$a9781430243779 311 08$a1430243775 327 $aTitle Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; CHAPTER 1 The Essence of Grails; Simplicity and Power; Grails, the Platform; Living in the Java Ecosystem; Installing and Configuring Grails; Creating Your First Application; Step 1: Creating the Application; Step 2: Creating a Controller; Step 3: Printing a Message; Step 4: Testing the Code; Step 5: Running the Tests; Step 6: Running the Application; Grails Interactive Mode; Summary; CHAPTER 2 Getting Started with Grails; What Is Scaffolding? 327 $aCreating a DomainIntroducing Dynamic Scaffolding; The Create Operation; The Read Operation; The Update Operation; The Delete Operation; Static Scaffolding; Generating a Controller; Generating the Views; Being Environmentally Friendly; Configuring Data Sources; The DataSource.groovy File; Configuring a MySQL Database; Configuring a JNDI Data Source; Supported Databases; Deploying the Application; Deployment with run-war; Deployment with a WAR file; Summary; CHAPTER 3 Understanding Domain Classes; Persisting Fields to the Database; Validating Domain Classes; Using Custom Validators 327 $aUnderstanding Transient PropertiesCustomizing Your Database Mapping; Building Relationships; Extending Classes with Inheritance; Embedding Objects; Testing Domain Classes; Summary; CHAPTER 4 Understanding Controllers; Defining Controllers; Setting the Default Action; Logging; Logging Exceptions; Accessing Request Attributes; Using Controller Scopes; Understanding Flash Scope; Accessing Request Parameters; Request Parameter Type Conversions; Rendering Text; Redirecting a Request; Creating a Model; Rendering a View; Finding the Default View; Selecting a Custom View; Rendering Templates 327 $aPerforming Data BindingValidating Incoming Data; The Errors API and Controllers; Data Binding to Multiple Domain Objects; Data Binding with the bindData Method; Data Binding and Associations; The Bindable Constraint; Working with Command Objects; Defining Command Objects; Using Command Objects; Imposing HTTP Method Restrictions; Implementing an Imperative Solution; Taking Advantage of a Declarative Syntax; Controller IO; Handling File Uploads; Working with Multipart Requests; Uploads and Data Binding; Reading the Request InputStream; Writing a Binary Response; Using Simple Interceptors 327 $aBefore AdviceAfter Advice; Testing Controllers; Controllers in Action; Creating the gTunes Home Page; Adding the User Domain Class; Adding a Login Form; Implementing Registration; Testing the Registration Code; Allowing Users to Log In; Testing the Login Process; Summary; CHAPTER 5 Understanding Views; The Basics; Understanding the Model; Page Directives; Groovy Scriptlets; GSP As GStrings; Built-in Grails Tags; Setting Variables with Tags; Logical Tags; Iterative Tags; Filtering and Iteration; The collect Tag; The findAll Tag; Grails Dynamic Tags; Linking Tags; The Link Tag 327 $aThe createLink and resource Tags 330 $aGrails is a full stack framework which aims to greatly simplify the task of building serious web applications for the JVM. The concepts within Grails, like interceptors, tag libs, and Groovy Server Pages (GSP), make those in the Java community feel right at home. Grails? foundation is on solid open source technologies such as Spring, Hibernate, and SiteMesh, which gives it even more potential in the Java space: Spring provides powerful inversion of control and MVC, Hibernate brings a stable, mature object relational mapping technology with the ability to integrate with legacy systems, and SiteMesh handles flexible layout control and page decoration. Grails complements these with additional features that take advantage of the coding?by?convention paradigm such as dynamic tag libraries, Grails object relational mapping, Groovy Server Pages, and scaffolding. Graeme Rocher, Grails lead and founder, and Jeff Brown bring you completely up?to?date with their authoritative and fully comprehensive guide to the Grails 2 framework. You?ll get to know all the core features, services, and Grails extensions via plug?ins, and understand the roles that Groovy and Grails are playing in the changing Web. 410 0$aExpert's voice in Web development. 517 3 $aGrails two 606 $aWeb site development 606 $aGroovy (Computer program language) 606 $aApplication software$xDevelopment 615 0$aWeb site development. 615 0$aGroovy (Computer program language) 615 0$aApplication software$xDevelopment. 676 $a006.78 700 $aBrown$b Jeff Scott$0867026 701 $aRocher$b Graeme Keith$01750213 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910438101503321 996 $aThe definitive guide to Grails 2$94184792 997 $aUNINA