本帖最后由 zzl313703419 于 2013-04-09 17:01:44 编辑

解决方案 »

  1.   

    问题是路径在哪里写?以前是在jsp直接提交到服务器了..现在在.java里 如何提交?
      

  2.   


    就直接写在你上传的那个方法里啊,以前你那个上传的文件名字是从jsp 页面传过来的,现在你就把那个变量写死写成那个文件名
      

  3.   

    你们还是没明白我说的 <form action="/manager/html/upload" method="post" enctype="multipart/form-data">
    <table cellspacing="0" cellpadding="3">
    <tr>
     <td class="row-right">
      <small>Select WAR file to upload</small>
     </td>
     <td class="row-left">
      <input type="file" name="deployWar" size="40">
     </td>
    </tr>
    <tr>
     <td class="row-right">
      &nbsp;
     </td>
     <td class="row-left">
      <input type="submit" value="Deploy">
     </td>
    </tr>
    </table>
    </form>我做的是 把以上的方式 在main方法里实现..
      

  4.   

    get请求不能发送文件的,要用post方式用流发送
      

  5.   

    http://blog.csdn.net/skyer_lei/article/details/6106709