Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat directories

Reply
Thread Tools

Tomcat directories

 
 
deepstar@gmail.com
Guest
Posts: n/a
 
      07-02-2006
Hey all

I am developing a file upload application and want all the user
uploaded files to be directed to C:\temp\ - the issue is that Tomcat
only allows users to write files to the actual web application
directory (webapps\appname\WEB-INF\whatever\. Is it possible to
reconfigure Tomcat so that C:\temp\ can be written to by a client
machine?

Thanks!

 
Reply With Quote
 
 
 
 
Tobias Schierge
Guest
Posts: n/a
 
      07-02-2006
Hi,

> I am developing a file upload application and want all the user
> uploaded files to be directed to C:\temp\ - the issue is that Tomcat
> only allows users to write files to the actual web application


That has to be caused by your specific setup, not true in general.

> directory (webapps\appname\WEB-INF\whatever\. Is it possible to
> reconfigure Tomcat so that C:\temp\ can be written to by a client
> machine?


By a client machine? That doesnt make sense.

You should store these uploaded file in the temp directory for your specific
appliation. You can retrieve the pah by looking
up "javax.servlet.context.tmpdir" attribute in Application Scope.

Regards,

Tobias
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Directories and Physical directories Paul M Fin MCAD 4 06-27-2008 07:50 PM
virtual directories/physical directories in IIS Paul F ASP .Net 4 06-25-2008 04:04 PM
Multiple bin-directories with virtual directories? =?Utf-8?B?TGFzc2UgTmlsc3Nvbg==?= ASP .Net 0 11-09-2004 05:49 PM
How to map Project directories to Production sub-directories Joel Finkel ASP .Net 0 09-12-2003 06:47 PM
Using virtual directories for common directories (scripts, images, styles, etc.) Jeffry van de Vuurst ASP .Net 2 07-30-2003 07:00 PM



Advertisments