struts2.0上传图片以数字做图片名字

public String execute() throws Exception { 
File[] files = this.getUploads(); 
double temp = c.getTimeInMillis(); 
for (int i = 0; i < files.length; i++) { 
temp += temp; 
this.getUploadFileName()[i] = temp 
+ getExtension(this.getUploadFileName()[i]); 
File imageFile = new File(this.getSavePath() + "\\" 
+ this.getUploadFileName()[i]); 
copy(files[i], imageFile); 
} 
return SUCCESS; 
} 

 

你可能感兴趣的:(C++,c,C#)