<!-- Sample file upload stack -->
            <interceptor-stack name="fileUploadStack">
                <interceptor-ref name="fileUpload"/>
                <interceptor-ref name="basicStack"/>
            </interceptor-stack>我看了下 struts jar包 ,也许这2个拦截器是突破口 你这种只能直接修改struts源码或者修改 struts-default.xml 

解决方案 »

  1.   

    零配置好像也是需要struts.xml的,毕竟零配置又不是无配置。
    你也可以在上传的时候自己创建临时文件夹,然后指定路径上传到你的文件夹,参考一下://File pic; String picFileName;  多文件上传改成数组.newName = UUID.randomUUID().toString() + "."+ FilenameUtils.getExtension(yspicFileName);
    String patns = ServletActionContext.getRequest().getRealPath("") + "/temp";
    File dir = new File(patns);
    if (!dir.exists())
    dir.mkdirs();
    File f = new File(dir, newName);
    FileUtils.copyFile(yspic, f);
      

  2.   

    NO,问题是我改的这个项目就没有struts.xml
      

  3.   

    没有struts.xml,就用hibernate.cfg.xml 或 applicationContext.xml 来重新设置注解。
      

  4.   

    没有struts.xml,可能会有struts.properties文件。不然就自己创建一个struts.xml文件
      

  5.   

    确实是警告,但是上传不成功啊前台显示成功,但后台的文件上传跟本没有成功我用的uploadify
      

  6.   

    http://pan.baidu.com/s/13rW2y
    我用的uploadify写的一个小例子!
      

  7.   

    后台对象是你处理的。根本用不到临时路劲,这是uploadify自身要用的。参考http://blog.csdn.net/withiter/article/details/7272338