把 jsp/controller.jsp 里面的代码修改一下
- String action = request.getParameter("action");
- String result = new ActionEnter( request, rootPath ).exec();
-
- if( action!=null && (action.equals("listfile") || action.equals("listimage") ) ){
- rootPath = rootPath.replace("\\", "/");
- result = result.replaceAll(rootPath, "/");
- }
- out.write( result );