7-25学习笔记(struts1,web.xml,Spring)
问题导航方式:
Spring
1 context-param与listener的顺序有关系吗?
没有,因为web容器的加载顺序是先加载context-param,再加载listener。所以顺序无关,而listener的顺序有关系。详见http://reeboo.iteye.com/blog/752786。这篇文章中简单介绍了加载顺序,监听器的类型及执行顺序,过滤器的执行顺序,注意dofilter之后返回。
2 ContextLoaderListener(spring) 实现 ServletContextListener(servlet),实现spring上下文的加载,其中知道的最重要的是加载配置文件,也就是context-param的contextConfigLocation指定的值。
3 RequestContextListener(spring)实现 ServletRequestListener(servlet),对每次request进行预处理。
4 《关于ServletContextListener,HttpSessionListener,ServletRequestListener的区别》,请看
http://www.pusuo.net/2009-09-19/110873176.html,说明这些都是在什么时候初始化,什么时候销毁。
http://hi.baidu.com/tianlong1569/blog/item/4c105de7fa5c5026b83820f6.html代码说明两者的区别。
5 《spring applicationContext在web容器中加载过程》,通过一步步的解析代码,说明怎么加载的spring的上下文。http://hi.baidu.com/jlhh/blog/item/b726c62a150d489b033bf621.html
6 主站中的spring配置上下文是怎么加载的?注释掉了的代码原来是用来初始化bean的。
7 context-param是不是放到propoties中,哪个监听器用怎么确定?
8 通过spring的ServletWrappingController把struts的页面请求转发action包装一下。可以使用spring的一些interceptors等,详见自带参考文档。一知半解。。
9 struts的配置文件是怎么加载的?
10 actionServlet干什么?
http://ltc603.iteye.com/blog/68637看的不太明了。。
11 struts配置文件的基本结构:主要包含formbean,全局转发,action映射,处理器配置,消息等。http://www.java3z.com/cwbwebhome/article/article2a/2115.html
12 struts配置文件controller的详细含义:http://hi.baidu.com/suofang/blog/item/8ff45e66fc1e7f25ab184c76.html
拾贝:
DTD:Document Type Definition
posted on 2011-07-25 16:58 youngForYou 阅读(541) 评论(0) 收藏 举报
浙公网安备 33010602011771号