我有一个Web应用程序,我必须在客户端提供对已安装的网络驱动器的直接访问(例如\\server\zentrale
映射到驱动器Z:\
)。JSF/Primefaces链接到文件系统
我试过以下,但没有任何工程:
<a target="_blank" href="file:///server/zentrale/username/data">user files</a>
<h:outputlink target="_blank" value="file:///server/zentrale/username/data">user files</a>
<a target="_blank" href="file:///Z:/username/data">user files</a>
<h:outputlink target="_blank" value="file:///Z:/username/data">user files</a>
我也在我jboss-web.xml
添加<disable-cross-context>false</disable-cross-context>
- 没有成功。
@BalusC在JSF 2 and a link to file system中提到要创建一个新的webapp上下文。 那么,我如何使用WildFly 10和Primefaces 6.1来做到这一点?
在我们的WebApplication的旧版本中,我们使用了Firefox的IE View
插件,但是这是2013年的最后一次更新!因为我们必须支持Chrome和IE等其他浏览器,所以我们不希望依赖某些浏览器插件!
这将**从来没有**在体面的浏览器工作...纯html安全问题...(尝试一个普通的html文件,也不会工作)。所有这些都在你提到的链接中提到。 – Kukeltje