急需请教一个入门的问题
String login = request.getParameter("loginname");String pass = request.getParameter("password");
String tr = request.getParameter("truename");
int grade =Integer.parseInt(request.getParameter("radiobutton"));
Student student = new Student();
student.setLoginName(login);
student.setPassWord(pass);
student.setTrueName(tr);
student.setSemester(grade);
StudentDao studentDao = new StudentDao();
int row = studentDao.insert(student);
if(row>0){
out.print("添加成功!");
}else{
out.print("添加失败!!!");
}
int row = studentDao.insert(student);老提示StudentDao 类中的insert的方法对student不适应
能帮忙解决下吗??