Jboss 7显示来自硬盘的图像

时间:2014-10-26 09:06:47

标签: jboss ftp jboss7.x

我使用Jboss7。我在主目录(/ home / user / images)中有文件。我想在浏览器中显示这些图像,其他工作我想要Jboss 7作为FTP服务器。

有人能帮助我吗?

1 个答案:

答案 0 :(得分:0)

也许您可以根据自己的需求调整此应用程序。这可以根据GPL许可条款免费使用和修改

http://www.vonloesch.de/filebrowser.html

要限制对目录的访问,您可以更改:

// Allow browsing and file manipulation only in Un certain directories
private static final boolean RESTRICT_BROWSING = false;
// If true, the user is allowed to browse only in RESTRICT_PATH,
// if false, the user is allowed to browse all directories Besides RESTRICT_PATH
private static final boolean RESTRICT_WHITELIST = false;
// Paths, sperated by semicolon
// private static final String RESTRICT_PATH = "C: \\ CODE; E: \\"; // Win32: Case important !!
private static final String RESTRICT_PATH = "/ etc, / var";