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 response or delegate to a view. To create a controller simply create a class whose name ends with @Controller@ and place it within the @grails-app/controllers@ directory.
一个控制器(Controllers)是请求范围的,用于处理请求,创建或者准备响应。换句话说,每次[request|controllers]会创建一个新的控制器(Controllers)实体。一个控制器(Controllers)能产生响应或者委托给一个视图。创建一个控制器(Controllers),简单创建一个类名以 @Controller@ 结尾的类,并放于@grails-app/controllers@目录中。
The default [URL Mapping|guide:mapping] setup ensures that the first part of your controller name is mapped to a URI and each action defined within your controller maps to URI within the controller name URI.
默认的[URL Mapping|guide:mapping]设置能确保你的控制器(Controllers)名字的第一部分被映射到一个URI上,并且控制器(Controllers)中的每个Actions(操作)定义被映射到控制器(Controllers)命名URI中的URI。
分享到:
相关推荐
6.1 Making Our Site Presentable with HTML Helpers 6.2 Building a Custom HTML Helper 6.3 Simplifying Page Layouts with Master Pages 6.4 Adding Validations Using ModelStateDictionary 6.5 ...
6.1 配置数据库 PKS上位机系统的数据库配置是指对数据库的建立和配置。在配置数据库时,需要创建新的数据库、建立Channels、建立Controllers、建立Points等步骤。 6.1.1 新建数据库 新建数据库是指创建新的数据库...
6.1 The Effects of Imprecision and Uncertainty 6.2 Fuzzification of Power Sets and Relational Systems 7 Fuzzy identification 8 Introducing Control Hierarchies 8.1 The Behaviour of an ...
6.1 The basic architecture 6.2 Fuzzy Hebbian learning 6.3 Compilation and interpretation of fuzzy controllers 6.4 Input and output interfaces of the fuzzy controller 6.4.1 Realization of the ...
6.1 概述 127 6.2 Namespace 129 6.3 ViewProperties 132 6.4 实现类 134 6.5 扩展默认实现类 140 6.6 在JSP的Scriptlet中使用ViewModel 142 7 Module(数据坞) 144 7.1 使用方式 144 7.2 动态参数设定 145 7.3 ...
5.2 INT 13H DEVICE CONTROLLERS 18 5.2.1 ATA DRIVE SUPPORT IN THE BIOS 18 5.2.2 PNP CARDS WITH BCVS 19 5.2.3 LEGACY CARDS WITH OPTION ROMS 19 5.2.4 HARD DRIVE BAID 19 5.2.5 CONTROLLER INSTALLATION ...
6.1 A Generic Solvable Case: Scenario Uncertainty 159 6.2 Solvable Case I: Simple Interval Uncertainty 160 6.3 Solvable Case II: Unstructured Norm-Bounded Uncertainty 161 6.4 Solvable Case III: Convex...
6.1 Creating a Map View 431 6.2 Handling the Events of a Map View 435 6.3 Pinpointing the Location of a Device 436 6.4 Displaying Pins on a Map View 439 6.5 Displaying Pins with Different Colors on a ...
5.3.1 controllers 33 5.3.2 views 33 5.3.3 models 35 5.3.4 security 37 5.3.5 美化网页 38 5.4 加分项: 通过 pgadmin3 来查看数据库 39 5.4.1 安装 39 5.4.2 连接服务器 39 5.4.3 图形化查询 40 6 Odoo 开发基础:...
22 3.2如何加载机器模型 24 四、安装新探头 25 五、添加新探头角度 29 六、校验探头 31 6.1定义校验规 31 6.2 校验探头 33 七、导入导出CAD数模 35 7.1 导入CAD数据模型 35 7.2 输出零件的CAD模型 37 八、数模对齐...
6.1 Quadratic Performance Function and Stabilization Control/110 6.2 Optimal Fuzzy Controller Design/114 Appendix to Chapter 6/118 References/119 7 ROBUST-OPTIMAL FUZZY CONTROL 121 7.1 Robust-Optimal ...
6.1 Point Operations on a Single Image 155 6.1.1 Contrast and Brightness Adjustment 155 6.1.2 Global Thresholding and Contouring 159 6.1.3 Lookup Table Implementation 162 6.2 Point Operations on ...
6.1 Introduction 6.2 Modular Neural-Control System 6.2.1 Control Networks 6.2.2 Decision Networks 6.3 Evaluation System 6.4 Preliminary Results 6.5 Conclusion 7 Summary References ...
2.1 Controllers and Managers............................................11 2.1.1 Controllers................................................11 2.1.2 Managers..............................................
4.2.3 show controllers命令 4.2.4 show buffers命令 4.2.5 debug serial interface命令 4.3 调制解调器的连通性 4.4 X.25连通性故障诊断与排除 4.4.1 show命令 4.4.2 debug x25 events命令 4.5 .X.25 动态...
Point Grounding 153 7.6 Ground Planes 155 7.7 Alternative Ground Planes 156 7.8 Power Centers 157 <br>x CONTENTS...Controllers 162 7.15 Screen Rooms 163 7.16 Review 164 Appendix I...
4.2.3 show controllers命令 4.2.4 show buffers命令 4.2.5 debug serial interface命令 4.3 调制解调器的连通性 4.4 X.25连通性故障诊断与排除 4.4.1 show命令 4.4.2 debug x25 events命令 4.5 .X.25 动态...
6.1. Understanding view resolution 6.2. Creating JSP views 6.2.1. Configuring a JSP-ready view resolver 6.2.2. Using Spring’s JSP libraries 6.3. Defining a layout with Apache Tiles views 6.3.1. ...
2007年五星书 英文版 Digital Design (Verilog): An Embedded Systems Approach Using Verilog Product Description Digital Design: An Embedded Systems Approach Using Verilog provides a foundation in ...
SCGCQ00355536 (DFCT) - MegaCli and StorCli can not manage both controllers of different types n the same system under FreeBSD SCGCQ00362808 (DFCT) - MegaCli 32 Crashes in Windows in specific system ...