Background Image

FORUM

2009.11.10 21:50

jsp 연결~~

조회 수 16335 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

아래에서 자바만으로는 잘 연결이 되고 값을 잘 가져옵니다.

하지만 톰캣을 이용하여 jsp에서 작업을 하려고 하니 잘 않되네요

<%@ page
 contentType = "text/html;charset=euc-kr"
 
import = "java.io.*,java.util.*,java.sql.*"
 import = "sm.common.util.*"


 errorPage = "/common/error.jsp"
%>
<%
 Connection conn =null;
 Statement pstmt =null;
 ResultSet rs = null;
 try{
  Class.forName("cubrid.jdbc.driver.CUBRIDDriver");
  conn=DriverManager.getConnection("jdbc:CUBRID:127.0.0.1:33000:smdocu","dba","dba");
  pstmt= conn.createStatement();
  rs=pstmt.executeQuery("select * from ma_usrm wehre usrm_emplid='bluebird'");
%>
<HTML>
<HEAD>
<TITLE>SM EDMS System(Version 1.0)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
</HEAD>
<body>
<% rs.getString("usrm_name"); %>
<% }catch(Exception e){ out.println(e.toString());}
 finally{
 if(rs!=null){rs.close();}
 if(pstmt!=null){pstmt.close();}
 if(conn!=null){conn.close();}  
 }
%>
</body>
</HTML>
server.xml은 아래와 같이

 <Context docBase="D:websmdocuwww" path="" reloadable="true">                  //1
 <Resource name="jdbc/CUBRIDDS" auth="Container" type="javax.sql.DataSource" // 2
  factory="org.apache.commons.dbcp.BasicDataSourceFactory"
  driverClassName="cubrid.jdbc.driver.CUBRIDDriver"            // 3
  url="jdbc:cubrid:127.0.0.1:33000:smdocu:::"  // 4
  username="dba" password="smdocu00"   // 5
  initialSize="10"
  maxActive="10"
  maxIdle="10"
  maxWait="-1"
/> // 6
 </Context>

같이 해주었습니다. 2번은 잘이해가 않가구요!!

에러는
cubrid.jdbc.driver.CUBRIDException: invalid URL
이렇게 뜹니다.

  • ?
    시난 2009.11.11 02:58
    conn=DriverManager.getConnection("jdbc:CUBRID:127.0.0.1:33000:smdocu","dba","dba");
    이 부분을..
    conn=DriverManager.getConnection("jdbc:CUBRID:127.0.0.1:33000:smdocu:::","dba","dba");
    으로 해보시기 바랍니다.

  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views119
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4475
    read more
  3. glo테이블에 insert할 경우..

    Date2009.11.27 Bypictions Views8922
    Read More
  4. cci api에서 glo를 다룬 예제 없나요?

    Date2009.11.27 Bypictions Views9281
    Read More
  5. 큐브리드앱스팩 설치문의

    Date2009.11.26 By오케이디바이스 Views9069
    Read More
  6. php 모듈설치가 안되요

    Date2009.11.26 Bysapr Views10923
    Read More
  7. 글 입력하는 폼에서 생긴 문제 몇가지 질문 드립니다.

    Date2009.11.26 By지니보이 Views9005
    Read More
  8. CentOs5.3 에서 TwinIp 설정시 cubrid service start 명령 실행시 멈춤현상

    Date2009.11.25 By로보캅 Views13294
    Read More
  9. CUBRIDException

    Date2009.11.24 By히로키 Views14530
    Read More
  10. 데이타 검색해 올 때 영어 이외에 검색해오지 못하는 이유

    Date2009.11.21 By지니보이 Views10124
    Read More
  11. 큐브리드에서 멀티 데이터베이스를 지원하나요?

    Date2009.11.21 By까망군 Views9529
    Read More
  12. 테이블에 데이터가 있는데 select 하면 데이터를 못 얻어오네요;

    Date2009.11.19 By하나엘 Views9597
    Read More
  13. 큐브리드 2008에서 C-API

    Date2009.11.17 By하나엘 Views10710
    Read More
  14. 데이터베이스 하드차지하는 용량이 계속 늘어요

    Date2009.11.17 By하나엘 Views12108
    Read More
  15. 큐브리드용량문제

    Date2009.11.17 By우주와나 Views12776
    Read More
  16. Cubrid 2008 R2.0 데이터 연결

    Date2009.11.17 By머털 Views11922
    Read More
  17. 파워빌더 큐브리드 연결

    Date2009.11.17 By소금인형™ Views14483
    Read More
  18. C#에서 ODBC연결시 에러

    Date2009.11.15 By용이 Views31853
    Read More
  19. 큐브리드 매니저에서 쿼리 포맷팅 기능이 있나요?

    Date2009.11.13 By풀리야 Views10448
    Read More
  20. auto increment 사용시 Insert 문제

    Date2009.11.11 By지니보이 Views14220
    Read More
  21. LINQ 지원 문의

    Date2009.11.10 ByAaron Views10704
    Read More
  22. jsp 연결~~

    Date2009.11.10 By하이에나 Views16335
    Read More
Board Pagination Prev 1 ... 175 176 177 178 179 180 181 182 183 184 ... 200 Next
/ 200

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales