Grails in Action

About the Book Grails in Action, Second Edition is a comprehensive introduction to Grails 2. In this totally revised edition you'll master Grails as you apply TDD techniques to a full-scale example (a Twitter clone).

Grails in Action

Summary Grails in Action, Second Edition is a comprehensive introduction to Grails 2 focused on making you super-productive fast. In this totally revised new edition, you'll master Grails 2.3 core skills as you apply TDD techniques to developing a full-scale Twitter clone. Along the way you'll learn the latest single-page web app UI techniques, work with NoSQL backends, integrate with enterprise messaging, and implement a complete RESTful API for your services. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology It may be time for you to stop reconfiguring, rewriting, and recompiling your Java web apps. Grails, a Groovy-powered web framework, hides all that busy work so you can concentrate on what your applications do, not how they're built. In addition to its famously intuitive dev environment and seamless integration with Spring and Hibernate, the new Grails 2.3 adds improved REST support, better protection against attacks from the web, and better dependency resolution. About the Book Grails in Action, Second Edition is a comprehensive introduction to Grails 2. In this totally revised edition you'll master Grails as you apply TDD techniques to a full-scale example (a Twitter clone). Along the way you'll learn single-page web app techniques, work with NoSQL back ends, integrate with enterprise messaging, implement a RESTful API ... and more. No Java or Groovy knowledge is required. Some web development and OOP experience is helpful. What's Inside Covers Grails 2.3 from the ground up Agile delivery and testing using Spock How to use and manage plugins Tips and tricks from the trenches About the Authors There's no substitute for experience: Glen Smith and Peter Ledbrook have been fixtures in the Grails community, contributing code, blogging, and speaking at conferences worldwide, since Grails 0.2. Table of Contents PART 1 INTRODUCING GRAILS Grails in a hurry The Groovy essentials PART 2 CORE GRAILS Modeling the domain 63 Creating the initial UI Retrieving the data you need Controlling application flow Services and data binding Developing tasty forms, views, and layouts PART 3 EVERYDAY GRAILS Building reliable applications Using plugins: just add water Protecting your application Exposing your app to other programs Single-page web applications (and other UI stuff) Understanding Spring and transactions PART 4 ADVANCED GRAILS Understanding events, messaging, and scheduling NoSQL and Grails Beyond compile, test, run Grails in the cloud BONUS ONLINE CHAPTERS Advanced GORM kung fu Developing plugins

The Definitive Guide to Grails 2

This chapter will describe the flexible URL mapping system provided by Grails
and demonstrate how to manage both forward and reverse URL lookups, how to
map requests to controller actions or views, and how to map exceptions to ...

The Definitive Guide to Grails 2

Grails 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.

The Definitive Guide to Grails

You can see that actions, like the index action, are defined as fields. Each field ...
A controller can define any number of actions, as shown in Listing 4-2. ... If no
action is specified, Grails will execute the default action in the specified controller.

The Definitive Guide to Grails

The rise of Ruby on Rails has signified a huge shift in how we build web applications today; it is a fantastic framework with a growing community. There is, however, space for another such framework that integrates seamlessly with Java. Thousands of companies have invested in Java, and these same companies are losing out on the benefits of a Rails–like framework. Enter Grails. Grails is not just a Rails clone. It aims to provide a Rails–like environment that is more familiar to Java developers and employs idioms that Java developers are comfortable using, making the adjustment in mentality to a dynamic framework less of a jump. 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 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.

Beginning Groovy and Grails

When this happens, it is useful to know the input and results of the actions being
executed. This entails displaying the ... Grails provides a mechanism called
action interceptors that you can use to provide the desired functionality.
Experienced ...

Beginning Groovy and Grails

Web frameworks are playing a major role in the creation of today's most compelling web applications, because they automate many of the tedious tasks, allowing developers to instead focus on providing users with creative and powerful features. Java developers have been particularly fortunate in this area, having been able to take advantage of Grails, an open source framework that supercharges productivity when building Java–driven web sites. Grails is based on Groovy, which is a very popular and growing dynamic scripting language for Java developers and was inspired by Python, Ruby, and Smalltalk. Beginning Groovy and Grails is the first introductory book on the Groovy language and its primary web framework, Grails. This book gets you started with Groovy and Grails and culminates in the example and possible application of some real–world projects. You follow along with the development of each project, implementing and running each application while learning new features along the way.

Groovy in Action

A guide to the Groovy programming language covers such topics as shell scripting, dynamic programming, Grails, GDK, and XML.

Groovy in Action

A guide to the Groovy programming language covers such topics as shell scripting, dynamic programming, Grails, GDK, and XML.

Beginning Groovy Grails and Griffon

Grails provides before and after interceptors. You will use both to provide the
audit log functionality. You will use a before interceptor to log the userName,
controller, action, and input parameters. To accomplish this, add the
beforeInterceptor ...

Beginning Groovy  Grails and Griffon

Web frameworks are playing a major role in the creation of today's most compelling web applications, because they automate many of the tedious tasks, allowing developers to instead focus on providing users with creative and powerful features. Java developers have been particularly fortunate in this area, having been able to take advantage of Grails, an open source framework that supercharges productivity when building Java–driven web sites. Grails is based on Groovy, which is a very popular and growing dynamic scripting language for Java developers and was inspired by Python, Ruby, and Smalltalk. Beginning Groovy, Grails and Griffon is the first introductory book on the Groovy language and its primary web framework, Grails. Griffon is also covered. While Grails is the Web framework for building Groovy Web applications, Griffon is the deskop framework for building desktop Groovy applications. Could Groovy be the new Java? It's light, fast and free (open source). This book gets you started with Groovy, Grails and Griffon, and culminates in the example and possible application of some real–world projects. You follow along with the development of each project, implementing and running each application while learning new features along the way.

Programming Grails

Best Practices for Experienced Grails Developers Burt Beckwith. methods are
automatically registered as actions, simply returning a Map from an action
renders the GSP corresponding to that controller and that action, using the Map
as the ...

Programming Grails

Dig deeper into Grails architecture and discover how this application framework works its magic. Written by a core developer on the Grails team, this practical guide takes you behind the curtain to reveal the inner workings of its 2.0 feature set. You’ll learn best practices for building and deploying Grails applications, including performance, security, scaling, tuning, debugging, and monitoring. Understand how Grails integrates with Groovy, Spring, Hibernate, and other JVM technologies, and learn how to create and use plugins to augment your application’s functionality. Once you know how Grails adds behavior by convention, you can solve problems more easily and develop applications more intuitively. Write simpler, more powerful code with the Groovy language Manage persistence in Grails, using Hibernate or a NoSQL datastore Learn how Grails uses Spring’s functionality and optional modules Discover how Hibernate handles details for storing and retrieving data Integrate technologies for messaging, mail, creating web services, and other JEE technologies Bypass convention and configure Grails manually Learn a general approach to upgrading applications and plugins Use Grails to develop and deploy IaaS and PaaS applications

Griffon in Action

Written for Java developers—no experience with Groovy, Grails, or Swing is required. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

Griffon in Action

Summary Griffon in Action is a comprehensive tutorial written for Java developers who want a more productive approach to UI development. After a quick Groovy tutorial, you'll immediately dive into Griffon and start building examples that explore its high productivity approach to Swing development. About the Technology You can think of Griffon as Grails for the desktop. It is a Groovy-driven UI framework for the JVM that wraps and radically simplifies Swing. Its declarative style and approachable abstractions are instantly familiar to developers using Grails or JavaFX. About the Book Griffon in Action gets you going quickly. Griffon's convention-over-configuration approach requires minimal code to get an app off the ground, so you can start seeing results immediately. You'll learn how SwingBuilder and other Griffon "builders" provide a coherent DSL-driven development experience. Along the way, you'll explore best practices for structure, architecture, and lifecycle of a Java desktop application. Written for Java developers—no experience with Groovy, Grails, or Swing is required. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book. What's Inside Griffon from the ground up Full compatibility with Griffon 1.0 Using SwingBuilder and the other "builders" Practical, real-world examples Just enough Groovy ======================================= Table of Contents PART 1 GETTING STARTED Welcome to the Griffon revolution A closer look at Griffon PART 2 ESSENTIAL GRIFFON Models and binding Creating a view Understanding controllers and services Understanding MVC groups Multithreaded applications Listening to notifications Testing your application Ship it! Working with plugins Enhanced looks Griffon in front, Grails in the back Productivity tools

GroovyMag November 2008

Also, we didn't have to write any kind of database migration script or schema
declaration: Grails constructs the database schema for us in the background
using Hibernate's database schema generation tools. actions built off the
controller are ...

GroovyMag November 2008


Getting Started with Grails

... </g:link> </span> </g:if> <g:else><strong>Full<strong></g:else> </td> </tr> </g:
each> </table> </diV> </diV> </body> </html> Now we need to modify
RaceController.groovy to render the view 72 | GETTING STARTED WITH GRAILs
.

Getting Started with Grails

Grails is an open-source, rapid web application development framework that provides a super-productive full-stack programming model based on the Groovy scripting language and built on top of Spring, Hibernate, and other standard Java frameworks. Ruby on Rails pioneered the innovative coupling of a powerful programming language and an opinionated framework that favors sensible defaults over complex configuration, but many organizations aren't yet ready to stray from the safety of Java or forgo their current Java investments. Grails makes it possible to achieve equivalent productivity in a Java-centric environment. Over the course of this book, the reader will explore the various aspects of Grails and also experience Grails by building a Grails app.