J
jonesy
Hi,
I have used Java servlets for a website. I would like to open files
stored on the webserver from the Java servlet. I was previously using:
res.sendRedirect("/filename.xls");
which redirected users to the file, but this forfeits the website
permissions as the users can simply type in the whole URL of the file
at a later date and access the file directly.
I found info on GetFile() here:
http://www.slamd.com/slamd-1.8.2-javadoc/com/sun/slamd/misc/GetFile.html
But I am unsure how to implement it. Do I need to create a GetFile
class? Do I need to import any extra packages to use this method? Is
there a better way of opening files through a java servlet?
Thanks for any help.
I have used Java servlets for a website. I would like to open files
stored on the webserver from the Java servlet. I was previously using:
res.sendRedirect("/filename.xls");
which redirected users to the file, but this forfeits the website
permissions as the users can simply type in the whole URL of the file
at a later date and access the file directly.
I found info on GetFile() here:
http://www.slamd.com/slamd-1.8.2-javadoc/com/sun/slamd/misc/GetFile.html
But I am unsure how to implement it. Do I need to create a GetFile
class? Do I need to import any extra packages to use this method? Is
there a better way of opening files through a java servlet?
Thanks for any help.