Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 JSP 中提供 linux samba 共享文件夹链接。通过单击链接共享文件夹必须在 Windows 资源管理器中打开。只需要链接到 jsp 中的共享文件夹。
我试过SmbFile.getPath(), SmbFile.getCannonicalPath(), SmbFile.getUniPath()...但没有成功。它将 url 附加到本地 tomcat 上下文。对此主题的帮助表示赞赏。
SmbFile.getPath()
SmbFile.getCannonicalPath()
SmbFile.getUniPath()
这不是 JSP/SMB 的问题,而是“我可以从 Web 浏览器打开文件夹”的问题,而且 JavaScript 似乎可以:
从 Web 浏览器打开文件系统文件夹/目录
您只需生成 JSP/SMB 代码即可生成此类 JavaScript。