Home Java • Download Grails 2: A Quick-Start Guide by Dave Klein, Ben Klein PDF

Download Grails 2: A Quick-Start Guide by Dave Klein, Ben Klein PDF

By Dave Klein, Ben Klein

Grails is a full-stack internet improvement framework that allows you to construct whole internet functions in a fragment of the time and with much less code than different frameworks. Grails makes use of the primary of conference over configuration and the dynamic Groovy programming language.

This revised and up-to-date new version indicates you ways to exploit Grails by means of iteratively construction a special, operating program. by the point you are performed, you will have outfitted and deployed a true, functioning web site. utilizing this hands-on, pragmatic process, you will discover themes reminiscent of Ajax in Grails, customized tags, and plugins. you are going to dig into Grails' robust view expertise, Groovy Server Pages, and spot how one can simply leverage the assistance provided by means of scaffolding to create customized person interfaces speedier than you are going to have proposal attainable. alongside the way in which, you will find out about area sessions, controllers, and GSP perspectives. and you may see how Grails helps you to use robust frameworks comparable to Spring and Hibernate.

With Grails, you will get much performed with little attempt. With this e-book, you will get much performed besides. start with Grails today.

What You Need:

Grails 2 will run on any desktop that helps Java. Grails functions should be deployed on any Java Servlet box, together with Tomcat, Jetty, WebLogic, JBoss, and Websphere.

Show description

Read Online or Download Grails 2: A Quick-Start Guide PDF

Best java books

Java For Dummies

Commence development robust courses with Java 6—fast!

Get an summary of Java 6 and start construction your personal programs
Even if you're new to Java programming—or to programming in general—you can wake up and operating in this wildly well known language in a rush. This ebook makes it effortless! From the best way to set up and run Java to figuring out sessions and gadgets and juggling values with arrays and collections, you'll get in control at the new gains of Java 6 in no time.

Discover how to
* Use object-oriented programming
* paintings with the alterations in Java 6 and JDK 6
* retailer time through reusing code
* combine Java and Javascript with the recent scripting tools
* Troubleshoot code difficulties and fasten insects

Java in a Nutshell (6th Edition)

The newest version of Java in a Nutshell is designed to assist skilled Java programmers get the main out of Java 7 and eight, yet it’s additionally a studying direction for brand spanking new builders. Chock filled with examples that display tips to take entire benefit of glossy Java APIs and improvement top practices, the 1st component to this completely up-to-date ebook offers a fast moving, no-fluff advent to the Java programming language and the middle runtime points of the Java platform.

Practical JIRA Administration

If youre acquainted with JIRA for factor monitoring, malicious program monitoring, and different makes use of, you recognize it will possibly occasionally be tough to establish and deal with. during this concise publication, software program toolsmith Matt Doar solutions tough and frequently-asked questions about JIRA management, and indicates you the way JIRA is meant for use.

Liferay 6.x Portal Enterprise Intranets Cookbook

Over 60 hands-on recipes that can assist you successfully create advanced and hugely custom-made firm intranet recommendations with Liferay Portal 6. x CE approximately This BookLearn how you can use Liferay Portal to create an absolutely useful intranet firm with a transparent constitution and database of all departments and staff of your companySave some time and funds by means of taking keep watch over of your information, files, and company processesPacked with step by step, real-world examples that can assist you with the install, deployment, and configuration of Liferay and that can assist you run strong instruments in your staff or clientsWho This ebook Is ForIf you're a Java developer or administrator with a technical history and wish to put in and configure Liferay Portal as an company intranet, this is often the ebook for you.

Additional info for Grails 2: A Quick-Start Guide

Example text

We need to modify TekEvent and Sponsor so they each have a collection of Sponsorship instances. groovy, and add a hasMany property. groovy static hasMany = [volunteers : TekUser, respondents : String, ➤ sponsorships : Sponsorship] static constraints = { name() city() description maxSize: 5000 organizer() venue() startDate() endDate() volunteers nullable: true ➤ sponsorships nullable: true } One last step: let’s add some sponsorship data in our BootStrap so that we’ll have something to look at.

For each property, we can include one or more key/value pairs that represent constraints—rules—for that property. ) The order of the properties in the constraints block will be used to determine the display order in the scaffolded views. The maxSize constraint that we added to the description property will affect how that property is displayed in the views and will also affect the database schema generation. For example, in MySQL,8 the description field will be of type longtext, whereas nonconstrained String properties will render fields of varchar(255).

This is not one of them. Instead, what Grails is doing here is synthesizing behavior at runtime. When a method call beginning with findBy is made on one of our domain classes, Grails will parse the rest of the method name to see whether it matches any of the properties of the class. Then it executes the behavior that we would expect if a method with that name and parameters did exist. This is called a dynamic finder, and it is part of one of Grails’ core components called Grails Object Relational Mapping (GORM).

Download PDF sample

Rated 4.46 of 5 – based on 47 votes
In Java