- 博客(6)
- 收藏
- 关注
6.1.3 Models and Views
h4. Returning the Modelh4. 返回模型(Model)A model is essentially a map that the view uses when rendering. The keys within that map translate to variable names accessible by the view. There are a couple of...
2008-03-19 00:02:09 131
6.1.2 Controllers and Scopes
h4. Available Scopesh4.可用范围(Scopes)Scopes are essentially hash like objects that allow you to store variables. The following scopes are available to controllers:范围(Scopes)本质上就像hash对象,允许你存储变量。下列为contro...
2008-03-18 23:39:05 89
6.1.1 Understanding Controllers and Actions
h4. Creating a controllerh4. 创建控制器(Controllers)Controllers can be created with the [create-controller|commandLine] target. For example try running the following command from the root of a Grails proje...
2008-03-18 23:16:13 77
6.1 Controllers
A controller handles requests and creates or prepares the response and is request-scoped. In other words a new instance is created for each [request|controllers]. A controller can generate the respon...
2008-03-18 22:52:54 145
Groovy(Java笨狗)系列-Working with closures(1)
翻译自《Groovy in action》,如有不准确之处,希望指教! closures(闭包)很重要,非常的重要!!!可以被认为是Groovy中一个非常有用的特性。同时,在你没有完全了解它之前会是一个陌生的概念。为了发挥Groovy最大功效,或者了解任何其他Groovy代码,它将肯定让你感觉轻松。不只是“一次婚礼上遇见它们”的轻松,而是“邀请它们参加周末烧烤”的轻松。(注原文: Not just...
2008-03-17 22:28:27 93
6.1.7 XML and JSON Responses
h4. Using the render method to output XMLh4. 使用render输出XMLGrails' supports a few different ways to produce XML and JSON responses. The first one covered is via the [render|controllers] method. Grai...
2008-03-09 15:19:51 96
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人