• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

null values on console

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am implemeted an File Upload application but its getting fails to upload.

I have this code, I written getter and setter for this.


public String uploadFile()
{
System.out.println("uploadedFileName = " + this.uploadedFileName);
System.out.println("uploadFile = " + this.uploadedFile);
System.out.println("uploadedFile = " + this.uploadedFile);
return SUCCESS;
}


But when i am going to run server its got fails to displaying the values and something displays on the console


Jul 14, 2010 4:31:59 PM org.apache.struts2.dispatcher.Dispatcher getSaveDir
INFO: Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
uploadedFileName = null
uploadFile = null
uploadedFile = null

Jul 14, 2010 4:31:59 PM org.apache.struts2.interceptor.FileUploadInterceptor intercept
INFO: Removing file uploadfile D:\FileUploading_Tiles\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\FileUploading_Tiles\upload_1433603b_129d09e4302__8000_00000002.tmp
Jul 14, 2010 4:31:59 PM org.apache.struts2.interceptor.FileUploadInterceptor intercept
INFO: Removing file uploadfile D:\FileUploading_Tiles\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\FileUploading_Tiles\upload_1433603b_129d09e4302__8000_00000002.tmp

If is this interceptor does; then what is the solutiond on that.
Inside this i was displays three variable but it prints null why should somebody able to tells me.

Thanks.




 
Sheriff
Posts: 9643
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suraj please show us the JSP page which is uploading the file and also the struts configuration of this action...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!