摘要:
OgnlValueStack贯穿整个 Action 的生命周期。 它是ContextMap中的一部分,里面的结构是一个List,是我们可以快速访问数据一个容器。它的封装是由struts2框架完成的。 通常情况下我们是从页面上获取数据。 在 OnglValueStack 中包含了一个CompoundR 阅读全文
摘要:
首先是,启动tomcat服务器,这时候会加载web.xml,当读到filter标签时,会创建过滤器对象。struts2的核心过滤器(StrutsPrepareAndExecuteFilter)会负责加载类路径下的struts.xml配置文件。接下来,从客户端发送请求过来 先经过前端控制器(核心过滤器 阅读全文
摘要:
java.lang.NullPointerException at com.itheima.test.Test2.fun1(Test2.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.ref 阅读全文