현재 버전

String sql = "select name,school,title,contents from SchoolBoard where num='?'"+num; 
+num; -> stmt.setInt(1,num);
 
and
    }catch(Exception ex){
		out.print("JSP에러 "+ex.toString());
->
}catch(SQLEXception e){e.printStackTrace();}

수정 이력

2020-11-30 05:59:32 에 아래 내용에서 변경 됨 #1
String sql = "select name,school,title,contents from SchoolBoard where num='?'"+num; 
+num; -> stmt.setInt(1,num);
and
    }catch(Exception ex){
		out.print("JSP에러 "+ex.toString());
->
}catch(SQLEXception e){e.printStackTrace();}