求教思路:jsp+struts滴。 上游工程是解析文件,里面有include指令,解析后获得一系列文件路径。,请问根据这一系列路径怎么上传。<input type="file">的value值是只读的,也就是说没办法给这个value值动态赋值。

解决方案 »

  1.   

    http://www.jspcn.net/htmlnews/11500198625311367.html参考这里的试试。
      

  2.   

    http://struts.javaeye.com/blog/281691这里有一个例子
      

  3.   

    Hashtable uploadFiles=ef.getMultipartRequestHandler().getFileElements();         if(uploadFiles.size()>0){
                Enumeration fk=uploadFiles.keys();
                while(fk.hasMoreElements()){
                   String fname=(String)fk.nextElement();
                   FormFile ff=(FormFile)uploadFiles.get(fname);
                   //接下来知道了,不过每个<input type=file name要不一样     
                }
             }
      

  4.   

    swfupload---------163邮箱也是基于类似的技术。
      

  5.   

    谢谢您的回复
    不过有个问题是
    这一块我怎么使用他的<input type="file">标签这个标签的value是只读的。
      

  6.   

    您好:
    能不能说的具体点啊
    msn:[email protected]
    QQ :315780342
      

  7.   


    http://demo.swfupload.org/v250alpha1/--->看Multi-Instance Demohttp://swfupload.org/http://www.javaeye.com/topic/110125,这个百度搜索的。
      

  8.   

    谢谢  APOLLO_TS 提供资料