【问题标题】:displaying the file from servlet after uploading上传后显示来自 servlet 的文件
【发布时间】:2014-02-23 04:16:42
【问题描述】:

我使用 servlet 上传了一个文件,使用 this 源但问题是我的浏览器似乎没有访问文件 从 servlet 那是当我使用 out.println() 时。复制相同的源并从记事本打开它显示正常。当我尝试使用 firefox 打开它时,它给出了错误,在 chrome 中打开时它甚至不介意。

 Firefox doesn't know how to open this address, because the protocol (d) isn't associated with any program.

出了什么问题。如何打开文件。

【问题讨论】:

    标签: java jakarta-ee servlets file-upload


    【解决方案1】:

    打开 Firebug 并查看您从服务器返回的响应。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-06
      • 1970-01-01
      • 2013-07-22
      • 1970-01-01
      • 1970-01-01
      • 2012-04-27
      • 2014-12-26
      • 1970-01-01
      相关资源
      最近更新 更多