String resourceId = qs.substring(qs.indexOf("/") + 1);
// retrieve resources selected
String path = null;
try {
ResourceXmlBean bean =
Resources.getResourceXmlBean(this, resourcesId);
path = bean.getDirectory();
} catch (Exception e) {
throw new ServletException(e);
}
String realPath = getServletContext().getRealPath("/");
File resources = new File(realPath, ResourceServlet.relativePath);