专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »Java教程 » struts文件上传:struts构建文件上传( 3) »正文

struts文件上传:struts构建文件上传( 3)

来源: 发布时间:星期四, 2009年1月15日 浏览:51次 评论:0
  这是第 2个类action

  package tester.business.maitain;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import org.apache.struts.upload.*;
public MaainForm
extends ActionForm {
/** private String p_title;
private post_index;
private String issue_time;
private String issue;
private String p_content;
private String p_accessory;
private p_id;
private java.util.ArrayList post_indexOpts;
*/
private Trainplan trainPlan = Trainplan;
private org.apache.struts.upload.FormFile theFile1;
private org.apache.struts.upload.FormFile theFile2;
private org.apache.struts.upload.FormFile theFile3;
public String getP_title {
trainPlan.getP_title;
}
public void P_title(String p_title) {
trainPlan.P_title(p_title);
}
public void TrainPlan(Trainplan trainP) {
this.trainPlan = trainP;
}
public Trainplan getTrainPlan {
this.trainPlan;
}
public void TheFile1(org.apache.struts.upload.FormFile theFile1) {
this.theFile1 = theFile1;
}
public org.apache.struts.upload.FormFile getTheFile2 {
theFile2;
}
public void TheFile2(org.apache.struts.upload.FormFile theFile2) {
this.theFile2 = theFile2;
}
public org.apache.struts.upload.FormFile getTheFile3 {
theFile3;
}
public void TheFile3(org.apache.struts.upload.FormFile theFile3) {
this.theFile3 = theFile3;
}
public org.apache.struts.upload.FormFile getTheFile1 {
theFile1;
}
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
/**@todo: finish this method, this is just the skeleton.*/
null;
}
public void re(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
}
}


0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: