I am using apache tomcat and i have some files in my system, I am creating links of these files with the below JSP code.
<%
File files = new File("/Users/user1/tests");
File[] fileList = files.listFiles();
for(int i=0; i<fileList.length;i++) {
File f = fileList[i];
out.println(i+". <a href='"+f.getAbsolutePath()+"' >"+f.getName()+"</a>");
}
%>
Now the links are generated fine, but when i click on these links apache is throwing 404 error. How can i make apache to access that folder.