Environmental Variables set

2006-01-13 Thread Zach Moazeni
Hello, In a Spring application that is being deployed to Tomcat I need to be able to load a file. The file resides in the /WEB-INF folder of the webapp. Is there any environmental variables I can be sure will be set so I can open a file relative to Tomcat? Things like catalina.home or

Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni
Hello, In our current application I need to link to a file that resides outside of the webapp directory. On another application we allowed the users upload files and stored them in the webapp directory, which made deployment a royal pain. This time we are storing the files in a location

Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni
for all the input. -Zach CARROLL, MIKE (CONTRACTOR) wrote: Why not just store the file in a database as a BLOB? Let the database worry about where they go... -Original Message- From: Zach Moazeni [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 2:16 PM To: Tomcat Users List

Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni
Sorry, keep = keen -Zach Zach Moazeni wrote: Even then I have to bring out the byte array into somewhere so that they're link is active. Like I said I'd rather not do any type of copy over for this link. Plus I'm not too keep on Blobs in databases anyway. I think the other's suggestion

Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni
/FileDownloader*/url-pattern /servlet-mapping I Appreciate any input -Zach Zach Moazeni wrote: Sorry, keep = keen -Zach Zach Moazeni wrote: Even then I have to bring out the byte array into somewhere so that they're link is active. Like I said I'd rather not do any type of copy over

Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni
Also one other thing...hitting the Servlet via ./FileDownloader/MyDoc.doc?id=#{doc.id} (using JSF) Doesnt' seem to hit the servlet, but going to ./FileDownloader?id=#{doc.id} does. Thanks for any input -Zach Zach Moazeni wrote: Alrighty, I was able to push the download to the client

Re: Tomcat IIS-redirector help

2006-01-11 Thread Zach Moazeni
It certainly would be nice if ASP and ASP.NET had a binary to which you could pass the file to and receive the output. You could then map .asp files as CGI's. -Zach Brantley Hobbs wrote: Can you please send me the txt of the registry file? I will check it out and make sure there

Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni
Bah, a coworker had me try servlet-mapping servlet-nameFileDownloadServlet/servlet-name url-pattern/FileDownloader/*/url-pattern /servlet-mapping and everything is Groovy. Thanks for all the previous help. -Zach Zach Moazeni wrote: Also one other thing...hitting the Servlet via

Re: Tomcat not relinquishing control of Jars.

2006-01-09 Thread Zach Moazeni
I tried both attributes, which worked however the server doesn't detect new pages like it used to. (If you update a jsp, it continues using the cached version) -Zach Brian O'Rourke wrote: On 1/5/06, Zach Moazeni [EMAIL PROTECTED] wrote: Hello, I'm currently on a project using JSF, Spring