确认有determine类且已正确导入
解决方案 »
- 菜鸟求解
- [S0S]请问各位大牛 ,怎么用JSP+WEB SERVICE实现天气预报功能
- jsp 中 application.getRealPath()的问题
- 急···急!!!!!
- 菜鸟求解,谢谢大侠们!
- 欢迎高级人才加盟中国制造业猎头网,为你打造高薪平台
- 解析xml
- 再次讨论在JSP中有关参数传递的问题
- 将时间格式化成"YYYY-MM-DD hh:mm:ss”,但要求返回结果仍为事件类型?
- 用servlet下载文件的奇怪问题
- 网站不能访问了,一打开就是In <driver>, invalid driver class name: "oracle.jdbc.driver.OracleDriver"
- jsp 读EXCEL文件?
import java.sql.*;public class determine{
public ResultSet getClass(String tea_id){
String sql="select classes.id,course.name "+
"from classes,course "+
"where course.id=classes.cour_id "+
"and classes.tea_id='"+tea_id+"' ";
sqlBean sqlbean = new sqlBean();
ResultSet rs = sqlbean.executeQuery(sql);
return rs;
}
public ResultSet getStudents(String class_id){
String sql="select student.id,name ,department,sex,,e_mail,tel "+
"from student,enrol,classes "+
"where student.id=enrol.stu_id "+
"and enrol.accept='0' "+
"and classes.id=enrol.class_id "+
"and classes.id='"+class_id+"' ";
sqlBean sqlbean = new sqlBean();
ResultSet rs = sqlbean.executeQuery(sql);
return rs;
}
public ResultSet getStudents2(String class_id){
String sql="select student.id,name ,department,sex,,e_mail,tel "+
"from student,enrol,classes "+
"where student.id=enrol.stu_id "+
"and enrol.accept='1' "+
"and enrol.score='0' "+
"and classes.id=enrol.class_id "+
"and classes.id='"+class_id+"' ";
sqlBean sqlbean = new sqlBean();
ResultSet rs = sqlbean.executeQuery(sql);
return rs;
}
public int enrol(String stu_id,String class_id){
int num=0;
String sql="update enrol set accept=1 "+
"where stu_id='"+stu_id+"' "+
"and class_id='"+class_id+"' ";
sqlBean db = new sqlBean();
num=db.executeInsert(sql);
return num;
}
public int ing(String stu_id,String class_id,String score){
int num=0;
String sql="update enrol "+
"set score='"+score+"' "+
"where stu_id='"+stu_id+"' "+
"and class_id='"+class_id+"' ";
sqlBean db = new sqlBean();
num=db.executeInsert(sql);
return num;
}
public int addMark(String stu_id,String class_id){
int num=0;
String sql="update student "+
"set student.=student.+course. "+
"from student,course,classes "+
"where student.id='"+stu_id+"' "+
"and course.id=classes.cour_id "+
"and classes.id='"+class_id+"' ";
sqlBean db = new sqlBean();
num=db.executeInsert(sql);
return num;
}
}
determine 没有定义,或者你引用错了。
加入如下语句:
<%@ page import="java.util.List"%>//改成自己写的类包名
类没有导进来.
怎样导进来.