Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File upload into project structure

 
varshaven rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

i have used struts file upload concept to upload files , what i want is the file should be displayed in physical structure of the project but instead it is uploaded in server path given this. D:\AeWebPortal\latestupdate\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\aeWebPortal\.

but it is not displaying in project structure ....please help in this regard i am also posting my code here




 
Shashank Ag
Ranch Hand
Posts: 88
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts file upload writes file in server tmp path. This can be modified although through struts.properties
But, mainly its ment for developer to take the File instance out in Action class, and make a copy or write wherever required.
 
varshaven rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i am not getting what you are trying to say. could help instead with an hint on how it should be done. the uploaded file should ultimately be seen in the physical structure of the project which is on local system d: drive

Please help with a hint or the way to get this done.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic