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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File upload into project structure" Watch "File upload into project structure" New topic
Author

File upload into project structure

varshaven rao
Greenhorn

Joined: Jan 27, 2011
Posts: 2
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

Joined: Dec 22, 2009
Posts: 88

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.


SCJP 91%, SCWCD 97%
varshaven rao
Greenhorn

Joined: Jan 27, 2011
Posts: 2
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File upload into project structure
 
Similar Threads
Exception: related to struts -need help
FileUploading in struts1.1
Image saving size reduction
exception in uploading the file
Commons FileUpload