…… public final class BudgetInfoAddForm extends ActionForm
{ private String infoType; private String title; private String
content; private FormFile
infoFile; 这里表示BudgetInfoAddForm继承于ActionForm,在这个Bean中定义了视图中所要显示数据信息的参数,包括infoType,资料分类;title,资料标题;content,资料内容;infoFile,
资料文件。同时在BudgetInfoAddForm中提供了设定和访问这些参数的方法:
public String getInfoType() public void setInfoType(String
infoType) public String getTitle() public void setTitle(String
title) public String getContent() public void setContent(String
content) public FormFile getInfoFile() public void
setInfoFile(FormFile infoFile) public void reset(ActionMapping
mapping, HttpServletRequest request) { title = null; content =
null; infoFile = null;
} 3、构建控制器