• 2022-07-25
    以下属于struts2的控制器组件是()。
    A: Action
    B: ActionForm
    C: ActionServlet
    D: dispatchAction
  • A

    内容

    • 0

      ‏Struts2扩展组件是通过配置文件和( )来管理的?‍ A: 核心控制器 B: Ioc C: AOP D: Action

    • 1

      在struts的配置文件中,action节点的哪一个属性用来action指定引用的actionForm() A: name B: attribute C: scope D: path

    • 2

      下面有关struts1和struts2的区别,描述错误的是()。 A: Struts1要求Action类继承一个抽象基类。Struts 2 Action类可以实现一个Action接口 B: Struts1 Action对象为每一个请求产生一个实例。Struts2 Action是单例模式并且必须是线程安全的 C: Struts1 Action 依赖于Servlet API,Struts 2 Action不依赖于容器,允许Action脱离容器单独被测试 D: Struts1 整合了JSTL,Struts2可以使用JSTL,但是也支持OGNL

    • 3

      Struts体系结构实现了MVC设计模式的概念,那么它将以下选项中给出的什么分别映射为web应用中的组件? A: View B: Model C: ActionServlet D: Action

    • 4

      Struts2的Action对象属于MVC模式中的控制器。