2006년 5월 31일 수요일

JSP 한글 깨짐 현상..

페이지 상단에 페이지 선언을 해줍니다.

[code type=html4strict]<%@ page contentType = "text/html; charset=euc-kr" %>
[/code]

이렇게 해주면 일단 왠만한 걱정은 싸 잡으셔도 될겁니다. 두번째 방법은 문자열(String)을 직접 코드 변환해주는 방법입니다. 함수로 만들어 사용해도 좋습니다.

[code type=html4strict]
out.println(new String(("자바속의 한글").getBytes("8859_1"), "EUC-KR"));
<%!
//한글 처리
public String ko(String str) {

try{
str = new String(str.getBytes("8859_1"), "EUC-KR");
} catch(UnsupportedEncodingException e) {
}
return str;
}
%>

<%
out.println(ko("자바속의 한글"));
%>[/code]



from
http://okjsp.pe.kr

Eclipse 실행 속도 줄이기..

from: http://www.raibledesigns.com/page/rd/20030312
I changed my shorcut icon (Win2K) to have the following as it's target:

eclipse.exe -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M -XX:MaxNewSize=32M -XX:NewSize=32M -Xmx256m -Xms256m

Eclipse now starts in a mere 6 seconds (2 GHz Dell, 512 MB RAM). Without these extra settings, it takes 11 seconds to start. That's what I call a performance increase! (2003-03-12 09:32:04.0)

from: http://www.raibledesigns.com/comment.do?method=edit&entryid=065039163189104748672473500018
I tried this out, but the memory settings don't seem to have anything to do with startup time.
18 seconds - "eclipse.exe"
13 seconds - "eclipse.exe -vmargs -Xverify:none"
12 seconds - "eclipse.exe -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M -XX:MaxNewSize=32M -XX:NewSize=32M -Xmx96m -Xms96m"

It's only the Xverify:none parameter which has a noticeable effect on reducing startup time. On the java website I found that this parameter turns off bytecode verification ( http://developer.java.sun.com/developer/onlineTraining/Security/Fundamentals/Security.html ), although the default is supposedly "only verify classes loaded over the network".

Oracle 9i 설치시 tomcat 8080포트와 겹치는 문제..

9i설치후 8080 포트 사용하는 것 바꾸기


출처 : http://blog.naver.com/scoll57.do?Redirect=Log&logNo=100015452658

1. 프로그램그룹-OracleHome92-?-'Database configuration assistant 실행
2. 수행하고자 하는 작업선택 화면에서 '데이터베이스의 데이터베이스 옵션구성' 을 선택
3. 옵션을 구성하고 자하는 DB를 선택(아마 설치시에 DB생성 하신걸로 가정)
4. '데이터베이스 기능창'에서 '표준데이터베이스 기능' 이라는 버튼클릭 하고 '사용자정의' 버튼클릭
5. 그러면 'Oracle XML DB'창이 뜨는데 그창 하단에 '포트번호' 바꾸시고 '확인'버튼 누르고 적용
6. 3으로 돌아가서 목록에 있는 다른 DB를 선택하고 같은 작업 3-5까지 수행

여기 적어놓은 것은 포트를 변경 시킨다는 것이구요, 포트를 아예 안쓰고 싶다면
5번 단계에서 'XML 프로토콜 비활성화'를 체크하심 됩니다. 보다 강력한 방법은
XML DB OPTION을 제거 하는 것이겠지요?!! ^-^

Oracle XML DB와 포트설정에 관련되서 아주 자세히 알 고 싶으시면
"XML Database Developer s Guide - Oracle XML DB"이 책의 21장
"Configuring Oracle XML DB with Enterprise Manager"을 참고 하세욤.