struts2中获取Servlet API的方法 、 。 (任写两个)
举一反三
- Struts2的Action可以通过ActionContext类来访问Servlet API。()
- 下面有关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
- Servlet API位于____________________及其子包____________________两个包中。
- Servlet API由哪两个包组成?
- Struts2框架由Struts和Spring框架发展而来。