Grails 2: A Quick-Start Guide


Book Description

Grails is a full-stack web development framework that enables you to build complete web applications in a fraction of the time and with less code than other frameworks. Grails uses the principle of convention over configuration and the dynamic Groovy programming language. This revised and updated new edition shows you how to use Grails by iteratively building a unique, working application. By the time you're done, you'll have built and deployed a real, functioning website. Using this hands-on, pragmatic approach, you'll explore topics such as Ajax in Grails, custom tags, and plugins. You'll dig into Grails' powerful view technology, Groovy Server Pages, and see how you can easily leverage the help offered by scaffolding to create custom user interfaces faster than you would have thought possible. Along the way, you'll learn about domain classes, controllers, and GSP views. And you'll see how Grails enables you to use powerful frameworks such as Spring and Hibernate. With Grails, you can get a lot done with little effort. With this book, you'll get a lot done as well. Get started with Grails today. What You Need: Grails 2 will run on any machine that supports Java. Grails applications can be deployed on any Java Servlet container, including Tomcat, Jetty, WebLogic, JBoss, and Websphere.




The Definitive Guide to Grails


Book Description

The aim of this book is to introduce one of those greener fields that is not so far from home. In fact, its roots are very much embedded in the Java platform that we all know and love. Grails could well be the web application framework that you've been searching for. You will learn how to use the Groovy language with Grails to rapidly prototype applications, develop dynamic tag libraries, create rich domain models, and provide reusable services. · The Search for the Holy Grail(s)· The Groovy Language· The Grails Project Infrastructure· The Application Domain· Scaffolding· Testing, Testing, Testing· Grails Controllers· Groovy Server Pages· Ajax· Services and Jobs· Java Integration




The Definitive Guide to Grails 2


Book Description

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.




Grails In Action


Book Description




Programming Grails


Book Description

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




Making Java Groovy


Book Description

Summary Making Java Groovy is a practical handbook for developers who want to blend Groovy into their day-to-day work with Java. It starts by introducing the key differences between Java and Groovy—and how you can use them to your advantage. Then, it guides you step-by-step through realistic development challenges, from web applications to web services to desktop applications, and shows how Groovy makes them easier to put into production. About this Book You don't need the full force of Java when you're writing a build script, a simple system utility, or a lightweight web app—but that's where Groovy shines brightest. This elegant JVM-based dynamic language extends and simplifies Java so you can concentrate on the task at hand instead of managing minute details and unnecessary complexity. Making Java Groov is a practical guide for developers who want to benefit from Groovy in their work with Java. It starts by introducing the key differences between Java and Groovy and how to use them to your advantage. Then, you'll focus on the situations you face every day, like consuming and creating RESTful web services, working with databases, and using the Spring framework. You'll also explore the great Groovy tools for build processes, testing, and deployment and learn how to write Groovy-based domain-specific languages that simplify Java development. Written for developers familiar with Java. No Groovy experience required. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. What's Inside Easier Java Closures, builders, and metaprogramming Gradle for builds, Spock for testing Groovy frameworks like Grails and Griffon About the Author Ken Kousen is an independent consultant and trainer specializing in Spring, Hibernate, Groovy, and Grails. Table of Contents PART 1: UP TO SPEED WITH GROOVY Why add Groovy to Java? Groovy by example Code-level integration Using Groovy features in Java PART 2: GROOVY TOOLS Build processes Testing Groovy and Java projects PART 3: GROOVY IN THE REAL WORLD The Spring framework Database access RESTful web services Building and testing web applications




Beginning Groovy and Grails


Book Description

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


Book Description

Summary Groovy in Action, Second Edition is a thoroughly revised, comprehensive guide to Groovy programming. It introduces Java developers to the dynamic features that Groovy provides, and shows how to apply Groovy to a range of tasks including building new apps, integration with existing code, and DSL development. Covers Groovy 2.4. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology In the last ten years, Groovy has become an integral part of a Java developer's toolbox. Its comfortable, common-sense design, seamless integration with Java, and rich ecosystem that includes the Grails web framework, the Gradle build system, and Spock testing platform have created a large Groovy community About the Book Groovy in Action, Second Edition is the undisputed definitive reference on the Groovy language. Written by core members of the Groovy language team, this book presents Groovy like no other can—from the inside out. With relevant examples, careful explanations of Groovy's key concepts and features, and insightful coverage of how to use Groovy in-production tasks, including building new applications, integration with existing code, and DSL development, this is the only book you'll need. Updated for Groovy 2.4. Some experience with Java or another programming language is helpful. No Groovy experience is assumed. What's Inside Comprehensive coverage of Groovy 2.4 including language features, libraries, and AST transformations Dynamic, static, and extensible typing Concurrency: actors, data parallelism, and dataflow Applying Groovy: Java integration, XML, SQL, testing, and domain-specific language support Hundreds of reusable examples About the Authors Authors Dierk König, Paul King, Guillaume Laforge, Hamlet D'Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet are intimately involved in the creation and ongoing development of the Groovy language and its ecosystem. Table of Contents PART 1 THE GROOVY LANGUAGE Your way to Groovy Overture: Groovy basics Simple Groovy datatypes Collective Groovy datatypes Working with closures Groovy control structures Object orientation, Groovy style Dynamic programming with Groovy Compile-time metaprogramming and AST transformations Groovy as a static language PART 2 AROUND THE GROOVY LIBRARY Working with builders Working with the GDK Database programming with Groovy Working with XML and JSON Interacting with Web Services Integrating Groovy PART 3 APPLIED GROOVY Unit testing with Groovy Concurrent Groovy with GPars Domain-specific languages The Groovy ecosystem




Unholy Grails


Book Description

What’s the fastest way to lose money? Follow the herd. Nick Radge stopped following the herd many years ago. As a trader and stock broker, Nick learnt to recognise what the herd were doing and how they react to financial information. He also realised that it made no sense. Are you one of the herd? Here’s a test: If a stock’s price is falling do you think it represents good value, i.e. it’s cheap? OneTel and HIH were not cheap when they eventually delisted in 2001. ABC Learning was not cheap when it delisted in 2008. How about Bear Sterns, Lehman Brothers, Trump Entertainment or Kodak? Billabong does not look cheap at the moment! A stock price in motion tends to stay in motion; Unholy Grails will show you how to be on the positive side of this statement. Nick Radge is focused on momentum investing; purchasing stocks that are trending up. Nick shows you how to hitch a ride on stocks in an uptrend or protect your capital during sustained bear markets. Unholy Grails goes against almost everything your stock broker, financial planner and your fund manager will ever tell you. Considering that in 2008 capital managed by fund managers dropped up to 50% we are in desperate need of an alternative way of thinking. In Unholy Grails, Nick Radge details a road less travelled; a compilation of practical strategies for investors looking for long term gains with minimum daily effort. “I am shocked that so many Mum and Dad investors were financially and emotionally battered during the GFC. The financial planners and fund managers they were relying on for advice gave them no advice: just the same old ‘buy and hold’ strategy that simply does not work in a collapsing market. In Unholy Grails I define specific strategies for investors, allowing them to manage their own investments and stop paying fees to financial planners and advisors,” said the author, Nick Radge. Whether investing for your retirement or using an active investment strategy to manage your personal wealth, Nick Radge examines and tests numerous investment strategies to help determine the right one for you. Don’t expect the same old, worn out advice from Nick Radge. His latest book is not called Unholy Grails for nothing!




Grails 1.1 Web Application Development


Book Description

Reclaiming Productivity for faster Java Web Development.