SPRING,STRUTS

半年多没碰过曾经的三大框架了。

今天试了试Spring,Struts,感觉忘了许多。。

 

简单记下大致的流程吧

1. 三个包,spring.jar,struts2..jar,struts_spring_pluger.jar

2. 两个配置文件,applicationContext.xml,struts.xml

3. 一个web.xml,添加一个listener,一个filter

 

ApplicationContext.xml

 

 struts.xml

 

 

web.xml插入如下代码

 

 

 

如此即可。

 

 

posted @ 2011-04-13 20:41  mylitboy  阅读(207)  评论(0编辑  收藏  举报