Re: Writing temporary file downloading it? [SOLVED]

2003-10-19 Thread Jason Viers
I had to do it a little differently (this is for a .zip file so I had to use the OutputStream) but you definitely got me on the right track. Thanks for all the help! Jason Shapira, Yoav wrote: Howdy, The directory it returns is C:\tomcat\work\Standalone\localhost\gss and I can write

Re: Writing temporary file downloading it?

2003-10-17 Thread Jason Viers
Running Tomcat 4.1.27, I'm currently deploying via the install task in the Ant script supplied with Tomcat, so all my files reside outside of the Tomcat directory. Otherwise, everything's pretty normal (Tomcat resides in C:\tomcat). Just for curiosity's sake, could I find out what methods

RE: Writing temporary file downloading it?

2003-10-17 Thread Shapira, Yoav
File.toURI().toURL(), or whatever method you want You can then delete the file if you want. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jason Viers [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 9:13 PM To: Tomcat Users List Subject: Re: Writing temporary

Re: Writing temporary file downloading it?

2003-10-17 Thread Justin Ruthenbeck
At 06:12 PM 10/16/2003, you wrote: Running Tomcat 4.1.27, I'm currently deploying via the install task in the Ant script supplied with Tomcat, so all my files reside outside of the Tomcat directory. Otherwise, everything's pretty normal (Tomcat resides in C:\tomcat). Just for curiosity's

RE: Writing temporary file downloading it?

2003-10-17 Thread Shapira, Yoav
Howdy, ;( (1) Write the file and directly reference it. For example, if you write your file into $TOMCAT/webapps/appname/myfile.html, then you can point your browser directly to it and it can download. If you always deploy your app exploded (not as a .war), then this is fine because you can

Re: Writing temporary file downloading it?

2003-10-17 Thread Jason Viers
] Sent: Thursday, October 16, 2003 9:13 PM To: Tomcat Users List Subject: Re: Writing temporary file downloading it? Running Tomcat 4.1.27, I'm currently deploying via the install task in the Ant script supplied with Tomcat, so all my files reside outside of the Tomcat directory. Otherwise

RE: Writing temporary file downloading it?

2003-10-17 Thread Justin Ruthenbeck
100% agreed. All the more reason why (1) isn't the best option in the general case. For Tomcat and exploded deployments, it'll work. As I said, the most flexible, portable option is (2). Thanks to Yoav for keeping the interop flag flying high and mighty. ;) justin At 12:33 PM 10/17/2003,

RE: Writing temporary file downloading it?

2003-10-17 Thread Shapira, Yoav
Howdy, The directory it returns is C:\tomcat\work\Standalone\localhost\gss and I can write test.txt there fine. If I try to make a hyper link to http://localhost:8080/gss/test.txt, though, Tomcat returns 404. Do I have to do something special to tell Tomcat to serve the file? You can only

Re: Writing temporary file downloading it?

2003-10-16 Thread Justin Ruthenbeck
Yes, it is possible. Give us an idea of your deployment setup (are you deploying as a .war file? Using default root paths? Anything special?) and we can suggest the best way to go about doing it. justin At 04:16 PM 10/16/2003, you wrote: Is it possible, in a servlet, to write to a temporary