beemee_freeserv
01-19-2005, 01:34 PM
what I want to do is (in JSP) to show the content of a specified directory
can anyone tell me how that is done?
I have absolutely NO JSP experience and I tried all day to find something that says how it should go, but i didn't get further than:
String jspPath = application.getRealPath(request.getServletPath());
java.io.File jspFile = new java.io.File(jspPath);
out.println(jspPath);
which shows the file i am using...so my guess is that i have to work with java.io.File, but how... :confused:
i have absolutely no idea (i also tried to find more with Google, but no luck so far...)
can anyone help me out?
can anyone tell me how that is done?
I have absolutely NO JSP experience and I tried all day to find something that says how it should go, but i didn't get further than:
String jspPath = application.getRealPath(request.getServletPath());
java.io.File jspFile = new java.io.File(jspPath);
out.println(jspPath);
which shows the file i am using...so my guess is that i have to work with java.io.File, but how... :confused:
i have absolutely no idea (i also tried to find more with Google, but no luck so far...)
can anyone help me out?