htmlfileform.java
来自「平时练习所写的代码。感觉用得很多。希望它可以给你带来帮助。」· Java 代码 · 共 56 行
JAVA
56 行
package htmltaglibs.forms;
import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
public class HtmlFileForm extends ActionForm {
// Default bean constructor
public HtmlFileForm() {
}
/**
* The file that the user has uploaded
*/
private FormFile file;
public FormFile getFile() {
return this.file;
}
public void setFile(FormFile file) {
this.file = file;
}
/**
* The name of the file - only for displaying results
*/
// private String fname;
//
// public String getFname() {
// return this.fname;
// }
//
// public void setFname(String fname) {
// this.fname = fname;
// }
//
// /**
// * The size of the file - only for displaying results
// */
// private String size;
//
// public String getSize() {
// return this.size;
// }
//
// public void setSize(String size) {
// this.size = size;
// }
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?