我的SendAction.java代码如下:package com.aa.struts.action;import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.aa.struts.data.Connect;
import com.aa.struts.form.SendForm;public class SendAction extends Action {
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)throws Exception
{
SendForm sendForm = (SendForm) form;
Connect con=new Connect();
ActionErrors errors=new ActionErrors();
String name=new String(sendForm.getName());
String password=new String(sendForm.getPassword());
String title=new String(sendForm.getTitle());
String content=new String(sendForm.getContent());
       int flag=con.liuyan(name,password,title,content);
       
               if(flag==1)
        {
          return (mapping.findForward("success"));
        }
   else{
errors.add("name",new ActionError("error.username.exist"));
saveErrors(request,errors);
   return (mapping.findForward("failure"));
   }
     }
}
每次点击提交按钮后,都会返回原始页面显示:用户名已经存在,可是,我的数据库表中至今仍空空如也,根本就没有成功插入数据过,我看不出到底是哪里的问题,已经两天了,愁死我了!!大侠们帮忙分析一下是哪里的问题吧,不胜感激!!!,我的分快没了,如果大家觉得少,我可以再加,全送出去也无所谓,只要能解决问题!