Next, let's set up a controller.
接下来,让我们来建立控制器。
Using a servlet as a controller.
将servlet用作控制器。
Listing 8 shows such a controller.
清单8显示了这样一个控制器。
Create a controller class for the service classes.
创建服务类的控制器类。
In the MVC paradigm, each view has a controller class.
在MVC模式中,每一个视图都有一个控制器类。
This signature means that the command is a controller command.
该特征符表示这个命令是一个控制器命令。
Spring provides a controller hierarchy that can be subclassed.
Spring提供了一个控制器层次结构,可以派生子类。
Each function in a controller represents a destination or route.
控制器中的每个函数表示一个目的地或路线。
Every domain class pairs up with a controller based on the name.
每个域类根据名称与一个控制器配对。
The code for a controller in Rails 3 can be exceedingly Spartan.
Rails3中的控制器代码可以极其简单。
The dongle ACTS as both an earpiece and a controller for the phone.
该适配器既是听筒,也是控制器。
Every action in a controller pairs up with a view based on the name.
控制器中的每个动作也是根据名称与一个视图配对。
Figure 3 shows the process definition panel for a controller region.
图3显示控制器区域的进程定义面板。
As I pointed out earlier, I'm rendering text directly from a controller.
正如之前提到的那样,我正从控制器中直接呈现文本。
A helper file gets created for you every time you generate a controller.
在你每生成一个控制器(controller)的时候,helper文件也会相应为你创建出来。
Build a controller method and possibly a view to render the Ajax response.
构建一个控制器方法,或者一个视图来呈现Ajax响应。
Depending on the equipment a controller may support up to 60 base stations.
取决于不同的设备,控制器一般支持多达60个基站。
The scaffold generation command also creates a controller for our application.
scaffold生成命令还为应用程序创建一个控制器。
A much better idea is to place all your business logic into a controller servlet.
更好的办法是将所有业务逻辑放在一个控制器servlet (controller servlet)中。
Serves HTML pages and acts as a controller through a servlet for database requests
提供HTML页面,并通过一个servlet充当数据库请求的控制器
With the direct dispatching approach, a controller class may implement only one API.
通过直接调度方法,控制器类只能实现一个api。
As an example, consider a controller method that manages saving a simple model object.
举例来说,让我们来考察一个控制器方法,它负责保存业务逻辑中的某一模型对象。
You can call an action method that is in a controller other than the current controller.
你可以调用不是当前控制器中的动作方法。
Consider Listing 6, which illustrates a normal portion of code from a controller servlet.
考虑清单6,它展示了一个控制器servlet中普通的一段代码。
In the delegated dispatching approach, a controller class may implement more than one API.
在委托调度方法中,控制器类可以实现多个api。
Attach the API web service class to a controller class using the web_service_api option.
使用web_service_api选项将apiweb服务类与控制器类绑定在一起。
Global filters - ASP.NET MVC now supports adding filters to all action methods of a controller.
现在,ASP.NETMVC支持向控制器的所有action方法中添加过滤器。
To use Rails and Ajax, you'll create an empty project and generate a controller with two methods.
要使用Rails和Ajax,就要创建一个空项目,并生成一个有两个方法的控制器。
I prefer not to have my models automatically validated when they're passed into a controller action.
我不喜欢在把模型传入控制器的时候总是要经过自动验证。
People who would be intimidated by a controller can now sing. Who doesn't want to be a rock star?
那些对手柄很反感的人们如今只需要开口唱歌就可以了,谁不想做一个摇滚明星呢?
应用推荐