用myeclipse做的struts圖片上傳下載實例,學(xué)習(xí)struts這個框架,目前正在利用這個框架開發(fā)一個小型涉及到上傳圖片文件代碼,忍痛在CSDN上花了10個資源分下載的,完整代碼,哥看的不是很明白,感興趣的學(xué)習(xí)下。
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package org.upload.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
package org.upload;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;