• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

file upload directory

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic