// retrieve resources selected
String id = request.getSession().getAttribute("selectedResources")+"";
String path = null;
try {
ResourceXmlBean bean = Resources.getResourceXmlBean(servlet,id);
path = bean.getDirectory();
} catch( Exception e ) {
throw new ServletException(e);
}
String realPath = servlet.getServletContext().getRealPath("/");
File resources = new File(realPath,ResourceServlet.relativePath);