Skip to content

Commit 6f2e925

Browse files
Paolo BiavatiPaolo Biavati
authored andcommitted
java servlet example
This servlet serve angular-filemanager call It's here for example purpouse, to use it you have to put it in your java web project Put in web.xml the servlet mapping <servlet> <servlet-name>FileManagerServlet</servlet-name> <servlet-class>com.project.web.servlet.AngularFileManagerServlet</servle t-class> </servlet> <servlet-mapping> <servlet-name>FileManagerServlet</servlet-name> <url-pattern>/fm/*</url-pattern> </servlet-mapping> that catch all request to path /fm/* in angular-filemanager-master/index.html uncomment links to js files in my assest/config.js I have : listUrl : "/fm/listUrl", uploadUrl : "/fm/uploadUrl", renameUrl : "/fm/renameUrl", copyUrl : "/fm/copyUrl", removeUrl : "/fm/removeUrl", editUrl : "/fm/editUrl", getContentUrl : "/fm/getContentUrl", createFolderUrl : "/fm/createFolderUrl", downloadFileUrl : "/fm/downloadFileUrl", compressUrl : "/fm/compressUrl", extractUrl : "/fm/extractUrl", permissionsUrl : "/fm/permissionsUrl", During initialization this servlet load some config properties from a file called angular-filemanager.properties in your classes folder. You can set repository.base.url and date.format Default values are : repository.base.url = "" and date.format = "yyyy-MM-dd hh:mm:ss" (Wed, 4 Jul 2001 12:08:56) NOTE: Does NOT manage 'preview' parameter in download Compress and expand are NOT implemented
1 parent 4d56ca9 commit 6f2e925

File tree

1 file changed

+599
-0
lines changed

1 file changed

+599
-0
lines changed

0 commit comments

Comments
 (0)