<%!
Connection con=null;
Statement st=null;
ResultSet rs=null;
String sql="";
PreparedStatement pstmt = null;
%>
<%
try{
con=log.getConnection();
st=con.createStatement();
sql = ("select * from news_events");
rs = st.executeQuery(sql);
while(rs.next()){
%>
<%out.println(rs.getString(1));%> |
<%out.println(rs.getString(2));%> |
<%
}
}
catch(Exception e){
out.println(e);
}
finally{
if(con!=null && !con.isClosed()){
rs.close();
con.close();
}
}
%>