wood burning stoves*
The moose likes Struts and the fly likes file upload  directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "file upload  directory" Watch "file upload  directory" New topic
Author

file upload directory

Rajani Deshpande
Ranch Hand

Joined: May 08, 2000
Posts: 45
I have two applications in my webapps directory. App_A and App_B
App_A has a form to enable file uploading thru struts. The upload works fine, but the problem is by default it gets uploaded to the App_B\webinf directory.
Is there a way to specify which directory it should upload to ?
dave sag
Ranch Hand

Joined: Feb 17, 2003
Posts: 47
Originally posted by Rajani Deshpande:
I have two applications in my webapps directory. App_A and App_B
App_A has a form to enable file uploading thru struts. The upload works fine, but the problem is by default it gets uploaded to the App_B\webinf directory.
Is there a way to specify which directory it should upload to ?

I have a similar problem but it's a bit weirder.
i have my site accepting uploads okay but for some reason by default it puts the file in $TOMCAT_HOME/bin which is hardly where I would have expected it to end up.
how do i specify in a fairly general way where i expect the file to go? it needs to be general as I work on my own laptop, deploy to a staging server and then eventually deploy to a live server. i don't want to have to rebuild for each deployment, but expect the .war file to be transportable.
TIA - dave.


JSF / Jini / Javaspaces / JDO - all rock in my opinion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file upload directory
 
Similar Threads
weblogic axis soap response problem
Doubt about getAttribute of Session
including an external jsp
Redirect Proxy Filter
Apache commons file upload does not work for me.