随笔分类 - struts
摘要:1.机制:spring mvc的入口是servlet,而struts2是filter2. 性能:spring会稍微比struts快。spring mvc是基于方法,单例(servlet也是单例);而sturts是基于类,多例3. Intercepter的实现机制:struts有以自己的Interce...
阅读全文
摘要:文章思路清晰http://blog.csdn.net/zeqblog/article/details/8665052
阅读全文
摘要:严重: Dispatcher initialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetException处理方法:1、核对lib包 commons-fileupload-1.2.1.jar, commons-io-1.3.2.jarcommons-logging-1.0.4.jar freemarker-2.3.16.jar ognl-3.0.jar struts2-core-2.2.1.jar xwork-core-2.2.1.jar注意2.1以前是没有commons-fileup
阅读全文
摘要:1.“#”主要有三种用途:访问OGNL上下文和Action上下文,#相当于ActionContext.getContext();可以访问这几个ActionContext中的属性。parameters#parameters.id[0]作用相当于request.getParameter("id")request#request.userName相当于request.getAttribute("userName")session#session.userName相当于session.getAttribute("userName")appli
阅读全文
摘要:public class ActionContext implements Serializable The ActionContext is the context in which anActionis executed. Each context is basically a container of objects an actionneeds for executionlike the session, parameters, locale, etc. The ActionContext is thread local which means that values stored i
阅读全文