• 고객센터
  • 교육
  • 매뉴얼
  • 데모
  • 제품소개
조회 수 : 1107
2007.11.19 (19:04:51)

>게시판을 이용해 주셔서 감사합니다.
>다음양식에 맞게 입력해주세요.
>
>* 고객시스템명 :
>* GAUCE 버전 : 4.0
>* WAS 종류(WebLogic 등등) :
>* DB 종류 : 오라클
>* 문의 유형(질문/요청/참조) :
>* 내용 :
>============================================================================
><%@ page contentType="text/html; charset=EUC_KR"%>
><%@ page import="com.gauce.*,com.gauce.db.*,com.gauce.io.*,com.gauce.http.*,com.gauce.filter.*,java.sql.*,javax.sql.*;"%>
>
><%
>
>GauceOutputStream gos = ((HttpGauceResponse) response).getGauceOutputStream();
>GauceInputStream  gis = ((HttpGauceRequest)   request).getGauceInputStream();
>
>Class.forName("oracle.jdbc.driver.OracleDriver");
>String url = "jdbc:oracle:thin:@OOOOOO;
>String id    = "OO";
>String pass  = "OO";
>
>Connection conn = null;
>ResultSet  rs   = null;
>Statement  stmt = null;
>
>try{
>
>    response.setContentType("text/html;");
>    conn = DriverManager.getConnection(url, id, pass);
>    stmt = conn.createStatement();
>    String method = request.getMethod();
>
>    String query = "SELECT CODE,STATUS,BIGO FROM RESULT_CODE";
>    rs = stmt.executeQuery(query);
>
>        GauceDataSet dSet = new GauceDataSet();
>        gos.fragment(dSet);
>
>       //가우스에 담기
>        while(rs.next()) {
>
>            dSet.put("CODE",      rs.getString("CODE")         4);
>            dSet.put("STATUS",   rs.getString("STATUS"),    50);
>            dSet.put("BIGO",       rs.getString("BIGO"),         50);
>            dSet.heap();
>        }
>        gos.write(dSet);
>        rs.close();
>        stmt.close();
>        conn.close();
>        gos.close();
>
>}catch(Exception e){
>    e.printStackTrace();
>}finally{
>if (stmt != null) { try { stmt.close(); } catch (SQLException e) {} }
>if (rs != null) { try { rs.close(); } catch (SQLException e) {} }
>if (conn != null) { try { conn.close(); } catch (SQLException e) {} }
>}
>%>
>============================================================================
>gfoms의 데이터셋에 연결된 jsp파일 내용입니다.
>콤보박스로 받에서 받아 오는대 한글이 깨지고 jsp에서 한글처리 하면 한글이 ??? 로 출력됨니다.
>gauce.xml 파일의 설정 부분도 Q&A를 검색하여 수정하였지만 여전히 한글이
>재대로 출력이 안되어서. 질문 드립니다.
>빠른 답변 부탁 드립니다.

다음과 같은 사항을 확인바랍니다.

1. DB 와 WAS 의 캐릭터 셋과 현재 개발중인 페이지의 캐릭터 셋이 맞는가?

2. WAS 상에서 DATASET 에 담기 이전에 로그를 찍었을때 정상적으로 출력이 되는가?

3. 만약 유니코드로 개발중이라면 유니코드 컴포넌트를 사용하고 있는가?

덧글로 달아주시기 바랍니다.
 
Tag List
XE Login