Hi Ian,
Idea of getting file from href="/results/xml_5.6_46.2.xls" works
for me now. (Thanks so much for giving this IDEA).
However what I was doing before was, depending on user input,I will
dynamically generate these reports and save them on server disk and
when ever user clicks on link,File is downloaded with HTML link = new
HTML("<a href=\"d:/nas/local/results/xml_5.6_46.2.xls \">Download
Report</a>"); (which had issue and is resolved now with your IDEA of
keeping file in href="/results/xml_5.6_46.2.xls" ).
Now my problem is,I am not able to generate reports and save them at "/
results/" location.
I am using below code in my java program with try catch block to save
file.However file is not getting generated/saved.(even I am not
getting any exceptions)
FileOutputStream fileOut = new FileOutputStream("/reports/
xml_5.6_46.2.xls");
wb.write(fileOut);
fileOut.close();
Am I doing anything wrong in giving paths. (This was working fine when
I give disk drive eg: d:/reports/xml_5.6_46.2.xls).
On Sep 20, 7:28 am, Ian Bambury <
ianbamb...@gmail.com> wrote:
> Put the file in the same place as your index.htm or, say, in a subdirectory
> called /results/
> Don't use the disk letter, just use something like
>
> href="results/xml_5.6_46.2.xls"
>
> Ian
>
>
http://examples.roughian.com
>
> 2009/9/20 sathya <
sathyavik...@gmail.com>