"I'm not back." - Bill Harding, Twister
If the file is a PDF file, then it would be a better idea to use Adobe Acrobat to open it.Originally posted by Paul Hankerg:
Actually I think it's a good idea to use broswer to open the file.
Originally posted by Paul Hankerg:
It seems I don't explain "open" well. When I say "open a PDF file", it's just like we click this PDF file, and I don't care it's Adobe reader or Adobe acrobt did the job. The only difference is I want the program do the click job for me automatically.
Originally posted by Paul Hankerg:
I tried Henry's
Runtime.getRuntime().exec("cmd /c C:\backup\mydoc.pdf");
not working.
Originally posted by Ernest Friedman-Hill:
OK, fine, but that's not important -- as I said, it's not the right thing to do anyway and will never work in your application. Do you understand why this is?
Originally posted by Ernest Friedman-Hill:
OK, fine, but that's not important -- as I said, it's not the right thing to do anyway and will never work in your application. Do you understand why this is?
What you want to do is have another JSP which does something like
and then your button would link to this.
I've ignored the whole concept of sessions and multiple users here; presumably you'll be looking at that soon.
Originally posted by ak pillai:
In a clustered web environment should use getResourceAsStream() as oppsed to using the "File".
Consider Paul's rocket mass heater. |