FormFile file=tb01blog.getFile();不兼容的类型,谢谢
import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
public class Tb01blog extends ActionForm{
private Integer id;
private String blogPhoto="";
private String blogTag="";
private FormFile file;
public Tb01blog(){
}
public Integer getId(){
return this.id;
}
public void setId(Integer id){
this.id=id;
import java.io.*;
import java.util.Date;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.struts.actions.DispatchAction;
import org.apache.struts.upload.FormFile;
import new1.BlogDao;
import new1.Tb01blog;
public ActionForward saveArticle(ActionMapping mapping,ActionForm form,HttpServletRequest request,
HttpServletResponse response)throws Exception{
Tb01blog tb01blog=(Tb01blog)form;
dao=new BlogDao();
FormFile file=tb01blog.getFile();