<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>JavaMaster.org</title>
		<link>http://javamaster.org/tt/</link>
		<description>자바 공유</description>
		<language>ko</language>
		<pubDate>Sun, 15 Mar 2009 00:29:31 +0900</pubDate>
		<generator>Tattertools 1.1.2.2 : Animato</generator>
		<image>
		<title>JavaMaster.org</title>
		<url>http://javamaster.org/tt/attach/1/4451960975.jpg</url>
		<link>http://javamaster.org/tt/</link>
		<width>300</width>
		<height>225</height>
		<description>자바 공유</description>
		</image>
		<item>
			<title>[자바 JDBC:강좌] JDBC 프로그래밍 강좌 3탄</title>
			<link>http://javamaster.org/tt/10</link>
			<description>초보자를 위한 JDBC를 실습 3탄입니다. (톰캣 , My-sql 환경하에서)&lt;br&gt;
이번 강의는 JDBC 프로그래밍중 대용량 데이터 입력방법에 대한 내용입니다.
&lt;iframe name=&quot;icontents&quot; id=&quot;icontents&quot; src=&quot;http://www.javamaster.org/lecture/java/jdbc_ex3.html&quot; width=&quot;100%&quot; height=&quot;300&quot; scrolling=&quot;yes&quot; border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</description>
			<category>Java</category>
			<category>JDBC</category>
			<category>자바</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/10</guid>
			<comments>http://javamaster.org/tt/10#entry10comment</comments>
			<pubDate>Thu, 04 Oct 2007 17:35:25 +0900</pubDate>
		</item>
		<item>
			<title>[자바 JDBC:강좌] JDBC 프로그래밍 강좌 2탄</title>
			<link>http://javamaster.org/tt/9</link>
			<description>초보자를 위한 JDBC를 실습 2탄입니다. (톰캣 , My-sql 환경하에서)&lt;br&gt;
이번 강의는 JDBC 프로그래밍의 기본이 되는 CRUD (C : Create, R : Read, U : Update, D : Delete)를 처리하는 방법입니다.
&lt;iframe name=&quot;icontents&quot; id=&quot;icontents&quot; src=&quot;http://www.javamaster.org/lecture/java/jdbc_ex2.html&quot; width=&quot;100%&quot; height=&quot;300&quot; scrolling=&quot;yes&quot; border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</description>
			<category>Java</category>
			<category>JDBC</category>
			<category>자바</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/9</guid>
			<comments>http://javamaster.org/tt/9#entry9comment</comments>
			<pubDate>Tue, 02 Oct 2007 17:33:22 +0900</pubDate>
		</item>
		<item>
			<title>[자바:유틸]  웹디비( 디비 브라우저)</title>
			<link>http://javamaster.org/tt/8</link>
			<description>&lt;br&gt;&lt;br&gt;
&lt;font color=&quot;red&quot;&gt;다운로드 : &lt;a href=&quot;http://www.javamaster.org/lecture/java/webdb.zip&quot;&gt;webdb.zip&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;&lt;br&gt;
웹디비? 이름을 명하기가 쉽지 않네요.ㅡ.ㅡ&lt;br&gt;&lt;br&gt;

php 버젼중의 myadmin 처럼 웹에서 디비를 핸들링할 수 있는 간단한 유틸입니다.&lt;br&gt;&lt;br&gt;

mysql과 oracle용으로 개발되었습니다. 소스 좀만 손보면 ms-sql 이나 다른 디비도 가능합니다.&lt;br&gt;&lt;br&gt;

프로젝트시 좀 편하게 사용해보고자 만들었습니다.&lt;br&gt;&lt;br&gt;

소스는 jsp 파일 달랑 하나이고, jdbc 드라이버만 세팅되어 있으면 바로 사용가능합니다.&lt;br&gt;&lt;br&gt;

ECU-KR환경과 UTF-8환경에서 사용할 수 있게 파일 두개로 분리해서 올립니다.&lt;br&gt;&lt;br&gt;

[사용방법]&lt;br&gt;&lt;br&gt;

1. http://소스위치/webdb_euckr.jsp 로 접속하면 됩니다. (utf-8환경은 webdb_utf8.jsp)&lt;br&gt;
2. 처음 접속하면 로그인 창이 뜹니다. 디비정보를 입력하고 로그인을 하시면 됩니다.&lt;br&gt;
   세션 유지시간은 5시간정도로 세팅해놨습니다.&lt;br&gt;
3. 로그인 하시면 정말 간단한 화면이 뜹니다.&lt;br&gt;
4. 먼저 로그아웃 버튼이 있고, 테이블리스트보기 , SQL 실행창, 하단에는 결과가 뿌려집니다.&lt;br&gt;
5. 테이블리스트보기를 누르면 해당 계정의 모든 테이블 리스트가 하단의 결과창에 보여집니다.&lt;br&gt;
이때 결과창의 테이블 이름에 링크가 걸려 있는데 이 링크를 누르시면 SQL창에 해당 테이블의&lt;br&gt;
SELECT 문이 만들어 집니다. Action을 누르시면 sql문이 실행됩니다.&lt;br&gt;
6. sql문을 ; 로 분리해서 여러개 한꺼번에 실행할 수 있습니다.&lt;br&gt;

ps) 가급적 프로젝트 개발시에만 사용하세요. 운영시에는 자제하시기 바랍니다.&lt;br&gt;
    로그인 디비계정의 권한이 막강할수록 모든 권한이 다 수행됩니다.&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;font color=&quot;red&quot;&gt;다운로드 : &lt;a href=&quot;http://www.javamaster.org/lecture/java/webdb.zip&quot;&gt;webdb.zip&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;</description>
			<category>Java</category>
			<category>디비유틸</category>
			<category>웹디비</category>
			<category>자바유틸</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/8</guid>
			<comments>http://javamaster.org/tt/8#entry8comment</comments>
			<pubDate>Sat, 02 Jun 2007 14:11:30 +0900</pubDate>
		</item>
		<item>
			<title>[자바 JDBC:강좌] JDBC 프로그래밍 강좌 1탄(환경설정)</title>
			<link>http://javamaster.org/tt/7</link>
			<description>초보자를 위한 JDBC를 위한 환경설정 및 실습 1탄입니다. (톰캣 , My-sql 환경하에서)
&lt;br&gt;
&lt;iframe name=&quot;icontents&quot; id=&quot;icontents&quot; src=&quot;http://www.javamaster.org/lecture/java/jdbc_ex1.html&quot; width=&quot;100%&quot; height=&quot;300&quot; scrolling=&quot;yes&quot; border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</description>
			<category>Java</category>
			<category>DBCP</category>
			<category>JDBC</category>
			<category>자바</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/7</guid>
			<comments>http://javamaster.org/tt/7#entry7comment</comments>
			<pubDate>Sat, 02 Jun 2007 13:35:05 +0900</pubDate>
		</item>
		<item>
			<title>[자바:강좌] WTP(Eclise Web Tools Platform) 설치방법입니다.</title>
			<link>http://javamaster.org/tt/6</link>
			<description>윈도우 자바개발환경을 위한 Eclise Web Tools Platform (WTP) 설치방법입니다. &lt;br&gt;
복잡한 설정은 생략하고 간단하게 프로젝트를 생성 후 톰캣과 연동하는 방법입니다.
&lt;br&gt;
&lt;iframe name=&quot;icontents&quot; id=&quot;icontents&quot; src=&quot;http://www.javamaster.org/lecture/java/eclipse_install.html&quot; width=&quot;100%&quot; height=&quot;300&quot; scrolling=&quot;yes&quot; border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</description>
			<category>Java</category>
			<category>Eclipse</category>
			<category>WTP</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/6</guid>
			<comments>http://javamaster.org/tt/6#entry6comment</comments>
			<pubDate>Mon, 16 Apr 2007 14:51:00 +0900</pubDate>
		</item>
		<item>
			<title>[Mysql:강좌] Mysql5 설치방법입니다 (윈도우환경)</title>
			<link>http://javamaster.org/tt/5</link>
			<description>윈도우 환경에서의 Mysql5 설치방법입니다.
&lt;br&gt;
&lt;iframe name=&quot;icontents&quot; id=&quot;icontents&quot; src=&quot;http://www.javamaster.org/lecture/mysql/mysql_install.html&quot; width=&quot;100%&quot; height=&quot;300&quot; scrolling=&quot;yes&quot; border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</description>
			<category>My-SQL</category>
			<category>mysql5</category>
			<category>mysql설치</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/5</guid>
			<comments>http://javamaster.org/tt/5#entry5comment</comments>
			<pubDate>Tue, 10 Apr 2007 21:08:49 +0900</pubDate>
		</item>
		<item>
			<title>[톰캣:강좌] 초보자를 위한 Tomcat 설치방법</title>
			<link>http://javamaster.org/tt/4</link>
			<description>초보자를 위한 개발자 PC에서의 기본적인 Tomcat 설치방법입니다.
&lt;br&gt;
&lt;iframe name=&quot;icontents&quot; id=&quot;icontents&quot; src=&quot;http://www.javamaster.org/lecture/tomcat/tomcat.html&quot; width=&quot;100%&quot; height=&quot;300&quot; scrolling=&quot;yes&quot; border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</description>
			<category>Tomcat</category>
			<category>tomcat</category>
			<category>톰캣</category>
			<category>톰캣설치</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/4</guid>
			<comments>http://javamaster.org/tt/4#entry4comment</comments>
			<pubDate>Mon, 09 Apr 2007 21:03:04 +0900</pubDate>
		</item>
		<item>
			<title>[자바스크립트:강좌] 구문강조 SyntaxHighlighter 사용방법</title>
			<link>http://javamaster.org/tt/2</link>
			<description>SyntaxHighlighter 사용방법입니다.

&lt;iframe name=&quot;icontents&quot; id=&quot;icontents&quot; src=&quot;http://www.javamaster.org/lecture/js/sh.html&quot; width=&quot;100%&quot; height=&quot;400&quot; scrolling=&quot;yes&quot; border=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;

</description>
			<category>JavaScript</category>
			<category>SyntaxHighlighter</category>
			<category>구문강조</category>
			<category>자바스크립트</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/2</guid>
			<comments>http://javamaster.org/tt/2#entry2comment</comments>
			<pubDate>Wed, 04 Apr 2007 19:33:41 +0900</pubDate>
		</item>
		<item>
			<title>[자바:TIP] 자바 문자열 함수 몇가지</title>
			<link>http://javamaster.org/tt/1</link>
			<description>&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;http://www.javamaster.org/css/sh/SyntaxHighlighter.css&quot;&gt;&lt;/link&gt;
&lt;br /&gt;첫번째 올리는 글입니다.^^ &lt;br /&gt;시간나는 데로 팁을 올려 보도록 하겠습니다. &lt;br /&gt;&lt;br /&gt;

&lt;textarea name=&quot;code&quot; class=&quot;java&quot; rows=&quot;15&quot; style=&quot;width:100%&quot;&gt;

/* 문자열 치환 */
public static String replaceStr(String src, String oldstr, String newstr){

 if (src == null) return null;

 StringBuffer dest = new StringBuffer(&quot;&quot;);
 int len = oldstr.length();
 int srclen = src.length();
 int pos = 0;
 int oldpos = 0;

 while ((pos = src.indexOf(oldstr, oldpos)) &amp;gt;= 0) {
　　　　dest.append(src.substring(oldpos, pos));
　　　　dest.append(newstr);
　　　　oldpos = pos + len;
 }

 if (oldpos &amp;lt; srclen)
 dest.append(src.substring(oldpos, srclen));

 return dest.toString();
}

/**
* int형 숫자앞에 원하는 size의 자릿수에 맞게 &#039;0&#039;를 붙인다. 예) 000000000 (일억자리수)에 345를 넣었을 경우
* &#039;000000345&#039;반환
*
* @param str
* 대상 int형 숫자
* @param size
* 원하는 자릿수
* @return 대상문자열에 자릿수 만큼의 &#039;0&#039;를 붙인 문자열
*/
public static String zerofill(int num, int size) throws Exception {
 return zerofill(new Integer(num), size);
}

public static String zerofill(double num, int size) throws Exception {
 return zerofill(new Double(num), size);
}

public static String zerofill(String num, int size) throws Exception {
 StringBuffer sb = new StringBuffer();
 for (int i = 0; i &amp;lt; size - num.getBytes().length; i++) {
  sb.append(&quot;0&quot;);
 }
 sb.append(num);
 return sb.toString();
}

/**
* Number형 숫자앞에 원하는 size의 자릿수에 맞게 &#039;0&#039;를 붙인다. 예) 000000000 (일억자리수)에 345를 넣었을
* 경우 &#039;000000345&#039;반환
*
* @param num
* 대상 Number형 숫자
* @param size
* 원하는 자릿수
* @return 대상문자열에 자릿수 만큼의 &#039;0&#039;를 붙인 문자열
*/
public static String zerofill(Number num, int size) throws Exception {
 String zero = &quot;&quot;;
 for (int i = 0; i &amp;lt; size; i++) {
  zero += &quot;0&quot;;
 }
 DecimalFormat df = new DecimalFormat(zero);
 return df.format(num);
}

/**
* 게시판 제목 같은 글을 원하는 길이로 자릅니다. 한글( or 한글 + 영어) 제목을 자르면 깨지는걸 막기위한 메소드이다. 반환될 String 의 길이는 len과 tail의 length를 더한 길이가 될 것이다. 마지막 character가 공백이면 이 공백은
* 제거된다.
*
* @param str :
* 원래의 글
* @param len :
* 자르고자 하는 길이
* @param tail :
* len 만큼 자르고 뒤에 붙일 꼬리글
*/

public static String getCutString(String str, int len, String tail) {

 byte[] by = str.getBytes();
 int count = 0;
 try {
 for(int i = 0; i &amp;lt; len; i++) {
  if((by[i] &amp;amp; 0x80) == 0x80) count++;
 }
 if((by[len - 1] &amp;amp; 0x80) == 0x80 &amp;amp;&amp;amp; (count % 2) == 1) len--;
  return new String(by, 0, len)+tail;
 }
 catch(java.lang.ArrayIndexOutOfBoundsException e)
 {
  return str;
 }
}

public static String getCutUTFString(String str, int len, String tail) {
 if (str.length() &amp;lt;= len) {
 return str;
}

StringCharacterIterator sci = new StringCharacterIterator(str);
 StringBuffer buffer = new StringBuffer();
 buffer.append(sci.first());
 for (int i = 1; i &amp;lt; len; i++) {
  if (i &amp;lt; len - 1) {
   buffer.append(sci.next());
  } else {
   char c = sci.next();
   if (c != 32) { // 마지막 charater가 공백이 아닐경우
    buffer.append(c);
   }
  }
 }
 buffer.append(tail);
 return buffer.toString();
}

&lt;/textarea&gt;

&lt;script class=&quot;javascript&quot; src=&quot;http://www.javamaster.org/script/sh/shCore.js&quot;&gt;&lt;/script&gt;
&lt;script class=&quot;javascript&quot; src=&quot;http://www.javamaster.org/script/sh/shBrushJava.js&quot;&gt;&lt;/script&gt;
&lt;script class=&quot;javascript&quot;&gt;
dp.SyntaxHighlighter.HighlightAll(&#039;code&#039;);
&lt;/script&gt;</description>
			<category>Java</category>
			<category>자바</category>
			<category>자바유틸</category>
			<author> (shin-gosoo)</author>
			<guid>http://javamaster.org/tt/1</guid>
			<comments>http://javamaster.org/tt/1#entry1comment</comments>
			<pubDate>Wed, 04 Apr 2007 11:42:06 +0900</pubDate>
		</item>
	</channel>
</rss>

