这些操作由操作类执行。
这个操作类接管输入页面的控制权。
表单操作类包含表单操作的行为。
操作类中的域模型将被适当填充。
The domain model is populated appropriately inside the action class.
操作类,表示员工管理打印的操作。
The Operator class, representing the operations staff that manage our printers
清单1显示了其中一个操作类的代码。
接下来我们将实现操作类。
其余的操作类实现很相似。
The remaining Action class implementations are very similar.
根据我们的设计,我们需要实现八个操作类。
Based on our design, we need to implement eight action classes.
接着我们必须设置一个操作类,来调用每个这类函数。
Then we would have to set up a simulation class that calls each of these functions.
现在,您已经创建了发生属性更改时作为入口点的操作类。
You've now created an action class that is the entry point when a property change has occurred.
用户更新的HTML输入字段的智能命名消除了操作类中的复杂编码。
Intelligent naming of HTML input fields updated by users negates writing complex code in the action class.
操作类继承的抽象类也已被创建以保存所有的操作类实现所需的共同代码。
An abstract class that our Action classes extend has also been created, to hold common code needed for all our Action class implementations.
一种方法就是使用(包含了所有操作类的)actions视图下的子包。
One way is to use a sub-package under a view named Actions where all your action classes reside.
智能标记的所有代码都属于一个类;您不必创建单独的操作类和识别器类。
All of the code for the smart tags is in one class; you do not have to create a separate actions class and recognizer class.
这通过LoggingOperations完成,它是log4j附加组件的操作类。
This is done using LoggingOperations, which is an operations class for the log4j add-on.
除了类的对象实例之外,这样做还可以让您避免构建和操作类的开发、部署和执行成本。
This lets you avoid the development, deployment, and execution costs of building and manipulating classes in addition to the object instances of those classes.
创建了新的操作类之后,就拥有了逻辑执行切入点,那么下面开始开发执行操作的代码。
Now that you have an entry point into your logic with the new action class you created, you can begin to develop the code that does the work.
我们的抽象操作类需要改成获取WebSpherePortal维护的User对象。
Our abstract action class will need to change to get the User object that WebSphere Portal maintains.
该组件使用了通用的数据库操作类,实现了表单的自动化生成及自动化修改,可以在基于。
This component has used the general database operation class, has realized the form automated production and the automation revises, may in be redundant the use based on the.
警告:插件类与操作类直到绝对需要降低Workbench对内存的需求时才会被初始化。
Caveat: plugin and action classes are not instantiated until absolutely required to lower Workbench memory requirements.
该系统通过建立一种通用的电力系统设备认知模型—操作类,来简化相应的专家系统知识库。
It adopts a general cognitive model of electric power devices -operational classes to simplify its knowledge database.
actionutil类(清单10)包含了我们的插件操作类要调用的一般任务所需要的方法。
The class ActionUtil (Listing 10) contains methods for common tasks invoked from our plugin action classes.
我实现了一个表单类(清单10)和一个表单操作类(清单11),以便于添加user页面流。
I implemented one form class (Listing 10) and one form action class (Listing 11) to facilitate the Add User page flow.
在考虑操作类、bean、表单或支持类的实现细节之前,您应当先考虑应用程序配置文件的实现。
Before considering the implementation details of the action classes, beans, forms, or the supporting classes, you should first think about the implementation of the application configuration files.
提供了创建各种表单bean和操作类的向导,使您在开发特定于您应用程序的逻辑时能够领先一步。
Provides wizards to create form beans and action classes, giving you have a head start in developing the logic that is specific to your application.
需要在操作类中添加属性类型ClientPortfolioDetailsBean及其get方法。
We need to add an attribute type ClientPortfolioDetailsBean in the action class, along with its get method.
下一个输入屏幕用于定义操作类、该类所在的包,以及用于创建带有输入和输出参数的操作的所有其他元素。
The next input screen is for defining your action class, which package it is in, and all the other elements to create an action with input and output parameters.
在get方法中,如果某个bean的实例没有在当前操作类实例中设置,那么应该从会话返回那个bean。
Inside the get method, a bean should be returned from the session if its instance is not set in the current action class instance.
这避免了在操作类中进行复杂编码(如struts1示例所示),将表单bean转换为相关域模型对象。
This allows avoidance of complex coding in the action class (as shown in the Struts 1 example) for converting the form bean in to the related domain model object.
应用推荐