E-Book, Englisch, 440 Seiten
Shingler / Faisal Nusairat / Judd Beginning Groovy and Grails
1. ed
ISBN: 978-1-4302-1046-7
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
From Novice to Professional
E-Book, Englisch, 440 Seiten
ISBN: 978-1-4302-1046-7
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
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.
Jim Shingler is a VP of Application Development for J. P. Morgan Chase. The focus of his career has been using cutting-edge technology to develop IT solutions for the banking, insurance, financial services, and manufacturing industries. He has 16 years of large-scale Java experience and significant experience in distributed and relational technologies.
Autoren/Hrsg.
Weitere Infos & Material
1;Contents at a Glance;5
2;Contents;6
3;Foreword;13
4;About the Authors;15
5;About the Technical Reviewer;16
6;Acknowledgments;17
7;Introduction;19
7.1;Who This Book Is For;20
7.2;How This Book Is Structured;20
7.3;Prerequisites;22
7.4;Downloading the Code;22
7.5;Contacting the Authors;22
8;Introduction to Groovy;23
8.1;Groovy Language Features;24
8.2;Groovy Installation;24
8.3;Groovy by Example;25
8.4;Summary;31
9;Groovy Basics;32
9.1;Scripts;32
9.2;Assertions;38
9.3;Strings;39
9.4;Methods and Closures;44
9.5;Collections;48
9.6;Regular Expressions;54
9.7;Operators;61
9.8;Summary;66
10;More Advanced Groovy;67
10.1;Groovy Unit Testing;67
10.2;Working with XML;70
10.3;Generating Text with Templates;74
10.4;Expandos;77
10.5;Meta Object Protocol;78
10.6;Domain- Specific Languages;80
10.7;Summary;81
11;Introduction to Grails;82
11.1;What Is Grails?;83
11.2;Grails Architecture;87
11.3;Installing Grails;89
11.4;Collab- Todo Application;89
11.5;Getting Started with Scaffolding;90
11.6;Understanding the Scaffolding Process;93
11.7;Summary;122
12;Building the User Interface;123
12.1;Starting with the End in Mind;123
12.2;Making the Topbar Functional;140
12.3;Testing;144
12.4;Externalizing Strings;157
12.5;Errors and Validation;159
12.6;Flash and Flash Messages;162
12.7;Controlling the Application;166
12.8;Creating an Audit Log Using Action Interceptors;175
12.9;Using Filters;177
12.10;Summary;181
13;Building Domains and Services;183
13.1;GORM;183
13.2;Collab- Todo’s Domain;184
13.3;Creating Domain Objects;186
13.4;Validation;204
13.5;Querying the Database;212
13.6;Database Migration;224
13.7;Services;226
13.8;Summary;230
14;Security in Grails;232
14.1;What Is Security?;233
14.2;An Overview of Grails Security Solutions;238
14.3;Custom Security Implementation;239
14.4;JSecurity;250
14.5;CAS;260
14.6;Spring Security ( aka Acegi Security);263
14.7;Summary;272
15;Web 2.0—Ajax and Friends;273
15.1;Advanced Presentation Components;273
15.2;Tag Libraries;290
15.3;Ajax in Grails;293
15.4;RSS Feeds;307
15.5;Summary;309
16;Web Services;311
16.1;RESTful Web Services;312
16.2;RESTful in Grails;314
16.3;Summary;325
17;Reporting;326
17.1;The Report;326
17.2;Overview of the Reporting Function;327
17.3;Reporting Tools;329
17.4;Creating the To- Do Report;331
17.5;The Report Tag;338
17.6;The ReportController and the ReportService;341
17.7;Tying It All Together;347
17.8;The Report List;349
17.9;An Alternate Approach;350
17.10;Summary;350
18;Batch Processing;352
18.1;Installing the Quartz Plug- in;352
18.2;Creating a Job;353
18.3;Building a Batch- Reporting Facility;355
18.4;Summary;366
19;Deploying and Upgrading;367
19.1;Deploying Grails Applications;367
19.2;Automating Tasks with Gant;377
19.3;Upgrading Grails Applications;379
19.4;Summary;380
20;Alternative Clients;381
20.1;Overview;381
20.2;Setup;382
20.3;Command- Line Scripts;383
20.4;Rich Groovy Client;393
20.5;Summary;412
21;Index;413




