https://github.com/bluejoe2008/elfinder-2.x-servlet
elfinder是一款基于Web的文件浏览器前端,但一直缺乏比较好的Java后端代码。
本项目集成了elfinder的前端代码,并提供了一个基于Java的后端实现。
文件管理器支持文件的浏览、查看、搜索等操作。通过接口设计,开发者可根据具体的情况模拟文件目录。
what's elfinder-2.x-servlet
elfinder-2.x-servlet implements a java servlet for elfinder-2.x connector
elfinder is an Open-source file manager for web, written in JavaScript using jQuery and jQuery UI. see also http://elfinder.org
for elfinder-1.2 users, please go to https://github.com/Studio-42/elfinder-servlet.
importing elfinder-2.x-servlet
this project is released as an artifact on the central repostory
use
<dependency>
<groupId>com.github.bluejoe2008</groupId>
<artifactId>elfinder-servlet-2</artifactId>
<version>1.1</version>
<classifier>classes</classifier>
</dependency>
to add dependency in your pom.xml
building elfinder-2.x-servlet
the source files includes:
- src/main/webapp : a normal j2ee application includes elfinder, WEB-INF...
- src/main/java: source codes for elfinder-servlet
- src/main/resources: source codes for elfinder-servlet
To build this project with maven run:
mvn install
to run this project within a jetty container use:
mvn jetty:run
using elfinder-2.x-servlet in your web apps
just use following codes to tell elfinder to conne