herein is subject to change without notice. 43 1. public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException { 2. Blog blog = (Blog)getModel().get(Constants.BLOG_KEY); 3. String name = request.getParameter("name"); 4. String type = request.getParameter("type"); 5. String path = request.getParameter("path"); 6. String content = request.getParameter("fileContent"); 7. try { 8. FileManager fileManager = new FileManager(blog, type); 9. fileManager.saveFile(path, name, content); 10. if (type.equals(FileMetaData.THEME_FILE)) { 11. fileManager = new FileManager(blog, FileMetaData.BLOG_DATA); 12. fileManager.saveFile("/theme" + path, name, content); 13. } 14. blog.info("File \"" + StringUtils.transformHTML(name) + "\" saved."); 15. } catch (IllegalFileAccessException e) { 16. return new ForbiddenView(); 17. } catch (IOException ioe) { 18. throw new ServletException(ioe); 19. } 20. return new ForwardView("/editFile.secureaction"); 21. }