www.pudn.com > struts_upload.zip > PicForm.java
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
/**
* MyEclipse Struts
* Creation date: 10-17-2007
*
* XDoclet definition:
* @struts.form name="picForm"
*/
public class PicForm extends ActionForm {
/*
* Generated fields
*/
/** fname property */
private String fname;
/** file property */
private FormFile file;
/** size property */
private String size;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
return null;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the fname.
* @return String
*/
public String getFname() {
return fname;
}
/**
* Set the fname.
* @param fname The fname to set
*/
public void setFname(String fname) {
this.fname = fname;
}
/**
* Returns the file.
* @return FormFile
*/
public FormFile getFile() {
return file;
}
/**
* Set the file.
* @param file The file to set
*/
public void setFile(FormFile file) {
this.file = file;
}
/**
* Returns the size.
* @return String
*/
public String getSize() {
return size;
}
/**
* Set the size.
* @param size The size to set
*/
public void setSize(String size) {
this.size = size;
}
}