严重: Exception starting filter struts-cleanup
java.lang.ClassNotFoundException: org.apache.Struts2.dispatcher.ActionContextCleanUpActionContextCleanUp这不就是FilterDispatcher的辅助类吗?为什么还会报类找不到异常,是不是还要加入一个什么样的jar包呀??朋友帮忙,谢谢。

解决方案 »

  1.   

    如果你的struts 是用的2.1 以上的版本, 将 web.xml 中的 FilterDispatcher 换成 StrutsPrepareAndExecuteFilter
      

  2.   

    我是用的struts2.1,我现在加了个了jar包struts2-pell-multipart-plugin-2.1.6.jar可以了。谢谢你啊!!不过还是上传不成功
    严重: Servlet.service() for servlet default threw exception
    java.io.FileNotFoundException: \upload\1.jpg (The system cannot find the path specified)
    我在action的execute方法里打印System.out.println("=========="+getSavePath()+"\\"+getUploadFileName());
    结果是==========/upload\1.jpg
    怎么会是这样一个路经呢?
      

  3.   

    问题已解决!注意两地方:
    1.加struts2-pell-multipart-plugin-2.1.6.jar
    2.savePath属性的set,get方法