The attributes of action mapping shown in Figure 12 are as follows.
图12中所显示的操作映射的属性如下。
Select New => Action Mapping Node to add a new action mapping node.
选择New =>Action MappingNode以添加一个新的操作映射节点。
In the action mapping wizard you will invoke the EGL business logic. Using the Cheat sheets.
您将在操作映射向导中调用EGL业务逻辑。
Also addes a form bean definition and an action mapping definition to the configuration file.
并向配置文件中添加一个Formbean的定义和一个操作映射的定义。
In the "New Action mapping - Define data mappings" dialog, enter or alter the following values.
在“NewAction mapping-Definedatamappings”对话框中,输入或修改下列值。
You would also need an action mapping to load the first page, at least assuming you were following the Model 2 recommendation.
您还需要一个操作映射用于加载第一个页面,这是在至少假设您遵循Model2推荐的条件下的情况。
An action mapping is a configuration file entry that associates an action name with an action, a form bean, and a local forward.
操作映射是一个配置文件条目,它将操作名称和操作、表单bean及本地转发关联在一起。
Click "Next" and you should see something very similar to Figure 13. The properties shown in Figure 13 are action mapping properties, as follows.
单击“Next”,您应该可以看到类似于如图13所示的内容。
Next, in the Struts configuration file (WEB-INF\struts-config.xml), the Struts action mapping is set to forward to the index.vm file instead of the index.jsp
然后在Struts配置文件( WEB-INF\struts-config.xml),把 Struts动作映射设置为转向index.vm 文件而不是 index.jsp 文件,如清单 22 所示
In addition, if you implement a validate method and set the validate flag in the corresponding action mapping entry in the Struts configuration file, the ActionServlet will invoke the validate method.
此外,如果您实现了一个验证方法并在Struts配置文件中相应的操作映射条目上设置了验证标志,ActionServlet将会调用那个验证方法。
Next, you need to define how the actions are constructed from intermediate objects and the mapping from the intermediate object fields to the action fields.
下一步,您需要定义如何在中间对象的基础上构造操作,以及定义从中间对象字段到操作字段的映射。
Define the mapping between action fields and intermediate objects.
定义操作字段与中间对象之间的映射。
The mapping primarily consists of the URI called by client and the action class which does the processing.
映射主要包括客户端调用的URI和进行处理的动作类。
This renaming action is just the opposite of what is described above for adding a mapping.
改名操作正好和上面描述的添加映射相反。
Having properly configured an instance of MockStrutsTestCase, testing Action classes just involves a bit of logical mapping.
正确地配置了MockStrutsTestCase的实例后,测试Action类就只包含一点点逻辑映射。
Listing 5. struts-config.xml snippet showing action class path mapping.
清单5 .struts - config . xml代码片段显示了动作类路径映射。
To open the Test map view, use the Test map action on the mapping editor toolbar.
要打开Testmap视图,请使用映射编辑器工具栏上的Test map操作。
Running a very simplistic sample application, you can see the JAXBHandler in action, mapping data from a pureXML column into an Employee bean. The application code and the output are in Figure 10.
通过运行一个非常简单的示例应用程序,可以看到JAXBHandler把purexml列中的数据映射为Employeebean的效果。
In the last bit of action in Listing 5, the user's browser is redirected to a new URL, which has the mapping get "/dashboard/@name", forward: "/dashboard.gtpl?tname=@name".
在清单5中最后操作部分,用户浏览器重新定向到新的URL,其具有映射get "/dashboard/@name",forward: "/dashboard.gtpl? tname=@name"。
All the real action starts with more specific URLs. The following list describes the mapping from URL stems to classes.
所有真正的动作都在更具体的URL中发生。
Start by copying (CTRL + c) the mapping in one file, go to the new file, select the new source and target fields (using the CTRL key to multi-select), and then invoke the paste action (CTRL + v).
首先在一个文件中(CTRL +C)复制映射,转到新文件,选择新的源和目标字段(使用ctrl键选择多个项),然后调用粘帖操作(CTRL + V)。
The action element describes a mapping from a request path to the corresponding action classes that should be used to process the requests.
action元素描述了从请求路径到相应的action类的映射,应该用这些类来处理来自这个路径的请求。
A mapping of the action class with the URL path is registered with the Struts configuration so that all requests with a matching path are sent to the mapped action class for processing.
action类与URL路径的映射被注册到Struts配置中,这样所有具有匹配路径的请求都被发送到与路径相映射的action类,然后再进行处理。
If you've ever used Google's online mapping application (for instance to get driving directions), then you've already seen Google Maps in action.
如果您曾经使用过Google的在线地图应用程序(比如为了获知驾驶方向),那么您已经见识过Google地图的实际应用。
You can also set breakpoints on the transformations in the Mapping Editor by right-clicking the transformation and selecting an action from the "Debug" menu.
还可以在MappingEditor 中对转换设置断点,方法是右键单击转换并从 “Debug” 菜单中选择一个操作。
Action-disable-target-mapping-portlets: All portlet applications provided by the portal.
action - disable - target - mapping - portlets:Portal提供所有的portlet应用程序。
Configure the Action and JSP with struts.xml mapping, as shown in Listing 3.
用struts. xml配置Action和JSP,如清单3所示。
Action-disable-target-mapping-caiwcm: Disables all computer-aided instruction (CAI) and WCM applications.
action - disable - target - mapping - caiwcm:使所有计算机辅助指令(cai)和wcm应用软件失效。
Recently, great advances have been made in the identification, mapping, cloning and action mechanism of heading date genes, especial QTL in rice.
近年来,在水稻抽穗期基因的发掘、定位、克隆及作用机制等方面,特别是QTL研究方面取得较大进展。
The paper deals with the research advances in the exploitation, action mechanisms and gene mapping of chlorophyll-deficit mutants.
本文介绍了国内外在水稻叶绿素合成缺陷突变体的发掘、作用机理及其基因定位等方面的研究进展。
应用推荐