⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlfileform.java

📁 一个使用htmltaglib的代码,在网上或书籍上一般都看不到
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -