• The code contains a few Struts action classes and a couple of JSPs.

    代码包含少量Struts动作个jsp页面。

    youdao

  • This is a default parameter name for all Struts action and cannot be changed.

    所有Struts行为默认参数名称不能更改

    youdao

  • When a Struts action takes place, its action class passes data to the property broker.

    一个Struts行为发生以后,的行为就会将数据传递这个属性代理

    youdao

  • That is, an HTTP request started in a Struts action can actually go into an EJB session bean.

    就是说,HTTP请求开始Struts动作,然后延续一个EJB会话bean。

    youdao

  • Listing 1 shows an example of a Struts Action that blurs the line between model and controller.

    清单1显示了一个Struts Action例子这个例子模糊模型控制器层之间界线

    youdao

  • Listing 1 and Listing 2 illustrate a typical Struts action and a typical Rails action, respectively.

    清单1清单2分别演示典型Struts动作和典型的Rails动作。

    youdao

  • In Listing 5, AnyAction represents any Struts action; it shows how you can get an object from the object manager.

    清单5中,AnyAction代表任何Struts动作演示如何对象管理器获取对象。

    youdao

  • A Struts action is an instance of an action class that implements a portion of a Web application and returns an object.

    Struts动作action一个实例action实现Web应用程序portion返回对象

    youdao

  • The only real servlet in this example is the Struts action servlet, which controls the invocation of the action classes.

    这个示例唯一个真正servletStruts动作servlet,控制动作调用

    youdao

  • A Struts action is an instance of an action class subclass that implements a portion of a Web application and returns a forward.

    Struts操作Action子类实例用来实现一部分Web应用程序返回一个转发。

    youdao

  • While no one would have thought it at the time (ah, the freewheeling days of yore), Struts Action classes often become havens for complexity.

    虽然那个时候(过去自由时光)可能Struts Action通常成为复杂性保护所。

    youdao

  • Directly Remove Sol demonstrates handling a transaction in the Web tier by obtaining a UserTransaction instance and using it within the Struts action.

    DirectlyRemoveSol通过获得UserTransaction实例并且Struts动作使用演示web处理一个事务

    youdao

  • However, we want to write the action in a scripting language, so we will use the ScriptedAction class, which extends the Struts action to execute a script.

    不过我们希望使用脚本语言编写操作因此,我们使用scriptedaction,该类会Struts Action进行扩展执行脚本

    youdao

  • 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 所示

    youdao

  • It also contains Struts Action and ActionForm classes, a Model service class, a JSP page to display the results, and source code for both a publisher and a subscriber.

    包含有Struts ActionActionFor m模型服务以及用来发布者订购显示结果及其源代码JS p

    youdao

  • You can indicate which action to take, what model to use, which view to display to the user, what validation rules to employ, which forms to display ... Struts is totally configurable.

    可以指出采取哪种动作使用什么模型,将哪种视图显示用户采用什么验证规则,显示哪种表单 ...

    youdao

  • Modify the Struts configuration to register the new action.

    修改Struts配置注册新的动作

    youdao

  • Figure 3 illustrates a basic action hierarchy for Rails and Struts.

    3演示Rails Struts基本动作层次结构

    youdao

  • Following the Struts architecture, you can create an action that takes three steps to generate the PDF document.

    按照Struts架构可以创建一个动作(action),通过三步生成pd f文档

    youdao

  • To build the same example app in Struts you would need two action classes for the two buttons, each requiring its own set of action mappings.

    Struts构建这个相同示例应用程序需要操作用于两个按钮每个类又需要自己的一组操作映射

    youdao

  • 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.

    避免操作中进行复杂编码(struts1示例所示),将表单bean转换相关模型对象。

    youdao

  • 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将会调用那个验证方法。

    youdao

  • 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.

    actionURL路径映射注册Struts配置中这样所有具有匹配路径的请求被发送到与路径相映射action类,然后再进行处理。

    youdao

  • A Struts forward is an object that is returned by an action, and that has two fields: a name and a path (typically the URL of a JSP).

    Struts转发操作返回对象两个字段名称一个路径(通常是jspurl)。

    youdao

  • You will need to interact with the Struts framework to get and set information in the bean form, specify the next action, and so on.

    需要Struts框架进行交互获取设置Bean表单中的信息并指定一个操作,等等。

    youdao

  • In Struts 2, the HTML input field names could be generated as OGNL expressions, which in turn helps eliminate complex coding in the action class.

    Struts2中,HTML输入字段名称可以生成为ognl表达式,后者有助于消除操作中的复杂编码

    youdao

  • Registering the new action class with the Struts configuration

    使用Struts配置注册新的action

    youdao

  • Click on the Servlets TAB, and change the name of the servlet from action to Struts.

    单击servlets选项卡然后Servlet名称action更改Struts

    youdao

  • Once the data is stored in the action class objects, Struts 2 puts that data onto the ValueStack in the form of the action object.

    一旦数据存储action对象Struts2就以action对象形式数据放在ValueStack中。

    youdao

  • Developers must be aware that Struts will create a single instance of the Action and allow multiple threads to invoke execute .

    开发人员必须清楚Struts创建Action单一实例允许多个线程调用它的execute 。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定