The core of the event action calls the code in Listing 3.
这个事件动作的核心调用清单3中的代码。
You can see the type substitution code in action in the output at the bottom of Listing 6 (restructured slightly for formatting).
在清单6底部的输出中(为了格式化稍微重新调整了结构),可以看到类型替换代码的作用。
It would be nice if the PHP code actually reported the location of the error, as well as the nature of the error, so that you can take corrective action.
如果PHP代码真能报告错误的位置以及错误的性质以便于您能采取正确的行动,那就更好了。
Listing 9 shows the complete action class code, not just the segment that changes the project description, so we can learn about some utility methods created for the second revision of the plugin.
清单9显示了完整的操作类代码,不只是改变项目描述的片断,这样我们可以学习为第二版插件创建的一些实用方法。
This applies in particular to action statements in the models — that is, the snippets of code that developers write into certain model elements to specify detailed behavior.
这特别应用于模型中的操作语句——也就是说,开发人员写入特定模型元素中,用于指定具体行为的代码段。
To see this in action, use code like that shown in Listing 5 to test the response text of a request, as well as its ready state.
要查看这种变化,请使用如 清单5所示的代码来测试请求的响应文本,以及它们的就绪状态。
To begin, you must understand that an action is a piece of code that implements a predefined interface.
首先,您必须了解操作就是用来实现预定义接口的一段代码。
Intelligent naming of HTML input fields updated by users negates writing complex code in the action class.
用户更新的HTML输入字段的智能命名消除了操作类中的复杂编码。
Building the code to respond to a user's actions consists of writing code to act upon that action.
要构建对用户操作做出响应的代码,就需要编写在操作发生时执行的代码。
If you get a response code of 201, then a new resource was created by the POST action.
如果您得到的响应代码是201,那么POST操作就会创建一个新的资源。
One of the changes in the JSP code is the action for the form.
JSP代码中的一个改变是表单的动作。
If you get a response code of 200, then the resource was modified by the PUT action.
如果您得到的响应代码是200,那么PUT操作将会更改资源。
Thus, you can present the results of the same Action in different ways and not duplicate any Action code.
这样,您可以以不同的方式显示同一个Action的结果而不用复制任何Action代码。
Movie icon Click here to see a viewlet of a Code Review in action.
movieicon点击这里来看一个代码复查是如何动作的viewlet。
We will also set up all the dynamic data we will need for the page, and write Action Handling Code to call an existing EJB component using the Quick Edit feature of WebSphere Studio.
我们也将设置页面需要的所有动态数据,并使用WebSphereStudio的QuickEdit功能编写ActionHandlingCode调用现有的EJB组件。
First, it helps you avoid redundant code in every Action class of your Web application.
首先,它避免了Web应用程序中每个action类的冗余代码。
A year ago I posted the outcome of the managed code Custom Action discussion I had with Carolyn (MSI Dev Manager) and a couple Windows architects.
一年前,我、Carolyn (MSIDev经理)和两位Windows架构师讨论过托管代码自定义操作,并把最终的结果发布到博客上。
You saw a bit of XML code to automate the deployment of a two-tier J2EE application in the IBM Cloud; the code details action creation, hooking actions to events, and event handling.
您看到了在IBMCloud中自动部署两层的J2EE应用程序的一些XML代码;这些代码说明了如何创建动作、把动作与事件关联起来和处理事件。
In terms of embedded Perl code, the things you always need are a "noun" (the thing affected) and a "verb" (the action taken).
就嵌入式Perl代码而言,必须要有的是“名词”(被影响的内容)和“动词”(采取的动作)。
To increase your understanding about when ClearQuest executes each kind of hook and to help you evaluate the hook code, see the Information center topic Execution order of field and action hooks.
为了增加您对ClearQuest什么时候执行每种类型hook的理解,并帮助您评价 hook代码,您可以查看信息中心来得到字段与操作的执行顺序。
For the Bigtable paper, the action of the batch process is equivalent to the code shown in Listing 7, where all the authors of the article are affiliated with Google.
对于这篇Bigtable论文,批处理流程的操作等同于清单7中的代码,其中该论文的所有作者都从属于Google。
An example of calling code in the access control hook of an action.
在一个action的accesscontrolhook中调用代码的一个例子如下。
This is created explicitly so that it can be referenced in other parts of the code (namely in the button's action closure.)
由于是显式创建的,因此可以在代码的其他部分中引用它(即在按钮的action闭包中)。
Regardless of your desired tool or preferred measure, it's important to take action to improve code actively and make your manual code review process more efficient.
不管您想要的工具或偏爱的方法是什么,重要的是:行动起来去积极改进代码质量并让手工代码检验的过程变得更加有效。
Listing 1 shows the code for one of these action classes.
清单1显示了其中一个操作类的代码。
I also like to log the boundaries between different programs being called into action during the running of the PHP code.
我还需要记录在PHP代码运行期间被调用的各个程序之间的边界。
This magnifies the reusability of your code and makes it very easy to, say, add Views for XML or RSS output to the same Action at a later date, as the application evolves.
这增加了代码的可重用性,并且便于日后向相同的操作添加xml或rss输出视图。
Figure 1 shows the TitlePane widget in action, the outcome of the code fragment shown in Listing 1.
图1显示了运行中的这个TitlePane小部件,即清单1所示代码段的结果。
Although functional, this code has a major drawback: you can't use the ASP.NET programming model to retrieve posted data in the action page of the client form. When writing search.aspx.
然而从功能上来讲此代码有一个大的缺陷:不能使用ASP.NET编程模型来检索客户端表单action页面上的提交数据。
A snippet of the Action class code shown in Listing 1 illustrates how the Model service is called from the Action class.
清单1中所示的一小段action类代码说明了如何从action类中调用模型服务。
应用推荐