<%@ page contentType="text/html;charset=euc-kr" %> <%@ include file="./top.jsp" %> <%@ include file="/scggracehill/Common/include/incConnection.jsp" %> <% PreparedStatement pstmt = null; ResultSet rset = null; ResultSet rset2 = null; try { String query1 = null; String query2 = null; query1 = "select * from qna where type = '1' order by no desc limit 5 offset 0 "; query2 = "select * from qna where type = '2' order by no desc limit 5 offset 0 "; pstmt = conn.prepareStatement(query1); rset = pstmt.executeQuery(); %>

ÀÌ ÆäÀÌÁöÀÇ ³»¿ëÀ» º¸·Á¸é ÃֽŠ¹öÀüÀÇ Adobe Flash Player°¡ ÇÊ¿äÇÕ´Ï´Ù.

Adobe Flash Player ³»·Á¹Þ±â

<% if(rset != null) { while(rset.next()) { //subject = cutoffString(subject, 40); %> <% } } else { %> <% } rset.close(); pstmt = conn.prepareStatement(query2); rset2 = pstmt.executeQuery(); %>
 <%= cutoffString(rset.getString(3), 25) %> <%= rset.getString(6) %>
 µî·ÏµÈ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù.
       
´õº¸±â ´õº¸±â <%@ include file="./bottom.jsp" %> <% if ( rset != null ) rset.close(); if ( pstmt != null ) pstmt.close(); if ( conn != null ) conn.close(); } catch (Exception e) { if ( rset != null ) rset.close(); if ( pstmt != null ) pstmt.close(); if ( conn != null ) conn.close(); // ¿¡·¯ÆäÀÌÁö·Î À̵¿............ out.println("JSP >> Exception in scggracehill/index.jsp : " + e.toString()); } %>