好久没写代码了,决定今天再温习下代码,搞下struts2,发现错误重重,哈哈~~~~~~
调了好多bug之后,myeclipse运行正常,打开网页出现一个
后来网上查了一下原来FilterDispatcher已被标注为过时 ,哎,我还没用几次就过时了呢,原来的struts.xml配置是酱紫的:~~~
现在改成一下这样就可以正常使用了:
原因在于:
Class FilterDispatcher
Deprecated.StrutsPrepareAndExecuteF ilter
instead or StrutsPrepareFilter
and StrutsExecuteFilter
if needing using the ActionContextCleanUp
filter in addition to this one
坚持自己的梦想,我一直在路上!