Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Tomcat directories

Thread view: 
deepstar@gmail.com - 02 Jul 2006 13:49 GMT
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!
Tobias Schierge - 02 Jul 2006 19:31 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.