在registAction里如下代码:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
RegistForm registForm = (RegistForm) form;
String username=registForm.getUsername();
String password=registForm.getPassword();
String repassword=registForm.getRepassword();
String sex=registForm.getSex();
String email=registForm.getEmail();
String address=registForm.getAddress();
try{
ResultSet rs=null;
Connection conn=null;
Statement stmt=null;
String sql="insert into regist(username,password,email,address) values('"+username+"','"+password+"','"+email+"','"+address+"')";
conn=DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mymonney","sa","");
stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
stmt.executeUpdate(sql);
stmt.close();
conn.close();

}
catch(Exception e){
System.out.print(e);

}
return mapping.findForward("login.jsp");

}
}异常是: driveraajava.sql.SQLException: No suitable driver