child 창에서 opener 의 select box 에 options 을 동적으로 생성못한다
IE 버그임.
==>
opener 쪽에 method 를 하나 더 선언해서 처리하면 된다.
'분류 전체보기'에 해당되는 글 663건
- 2007.01.15 IE bug, child 창에서 opener에 select option 추가하기, 안됨
- 2007.01.15 eclipse 에 jar 추가 2
- 2007.01.11 [ajax][java] java ajax 에서 한글처리?
- 2007.01.10 [java][struts]PropertyUtils.copyProperties()
- 2006.12.29 google calendar notifier 설정 실패
- 2006.12.28 java 에서 date 형의 연산은?
- 2006.12.28 MS SQL Server7 에서 Database 복사 방법
- 2006.12.27 oracle date 형을 unix timestamp 로 변환
- 2006.12.27 sqlplus 명령어
- 2006.12.27 java 날짜 처리
"Ajax 기본 예제와 JSP 엔진에서 한글 인코딩 충돌 문제 처리" 라는 글을 찾았습니다.
이 걸로 한글 문제가 해결될까요?
http://kwon37xi.egloos.com/2558053
PropertyUtils.copyProperties()
보기:
PropertyUtils.copyProperties(jisikRec, jisikForm);
<-- jisikForm 에 저장된 정보를 jisikRec 으로 복사한다.
순서에 주의하라.
PropertyUtils.copyProperties(target, source);
PropertyUtils 클래스는 org.apache.commons.beanutils 에 있다.
보기:
PropertyUtils.copyProperties(jisikRec, jisikForm);
<-- jisikForm 에 저장된 정보를 jisikRec 으로 복사한다.
순서에 주의하라.
PropertyUtils.copyProperties(target, source);
PropertyUtils 클래스는 org.apache.commons.beanutils 에 있다.
google calendar notifier 를 설치해보았다.
그런데 제대로 동작을 하지 않는다.
해결방법을 조금 찾다가 귀찮아서 포기
--> google calendar 의 html 대신 xml 을 복사해 넣었더니 제대로 동작한다
--> google calendar 의 html 대신 xml 을 복사해 넣었더니 제대로 동작한다
java 에서 두 시간의 차이는 어떻게 구할까?
Date1 과 Date2 가 몇 초 차이가 나는지 알려면 어떻게 하는지 모르겠다.
MS SQL Server7 에서 Database 복사 방법
0. source 가 snd 이고 destination 이 skhu 일 때
1. Tools -> Wizeards -> Data Transformatin Services ->
DTS import Wizard 창에서
Data Source를 snd 선택
Data Destination 을 skhy 선택
[계속] 버튼
모든테이블 선택
[계속] 버튼
끝
* 기존에 복사한 적이 있으면 데이타가 추가되는 것 같다,
* procedure, view 는 복사되지 않는다. 이것까지 복사하는 방법은 뭘까?
SELECT (sysdate - to_date('01-JAN-1970','DD-MON-YYYY') ) * (86400) - (9*3600) AS dt FROM dual;
SELECT (create_time - to_date('01-JAN-1970','DD-MON-YYYY') ) * (86400) - (9*3600) AS dt
FROM maintext WHERE board_id = 1;
sqlplus에서
. ed[it] : 바로 전에 입력한 명령어를 vi 로 편집
. r[un] : buffer에 저장된 명령어 실행
. sav[e] filename[.sql] : buffer에 저장된 명령어 저장
기타 유용한 명령어
. @file_name[.sql] : file_name 의 파일을 sqlplus 에서 실행
. desc[ribe] [user.]table_name[@db_name] : 지정된 테이블에 대한 상세
. spool file_name : 질의 결과를 file_name 파일에 저장
>> spool off 결과 저장 중지
. ed[it] : 바로 전에 입력한 명령어를 vi 로 편집
. r[un] : buffer에 저장된 명령어 실행
. sav[e] filename[.sql] : buffer에 저장된 명령어 저장
기타 유용한 명령어
. @file_name[.sql] : file_name 의 파일을 sqlplus 에서 실행
. desc[ribe] [user.]table_name[@db_name] : 지정된 테이블에 대한 상세
. spool file_name : 질의 결과를 file_name 파일에 저장
>> spool off 결과 저장 중지
출처:http://mwultong.blogspot.com/2006/11/java-unix-time-posix-time-unix-epoch.html
import java.util.*;
public class Date {
public static void main(String[] args) {
Date start = new Date();
System.out.println( " ==> " + start );
System.out.println( " ==> " + start.toString() );
long L = System.currentTimeMillis() / 1000;
System.out.println("current unixtime is :" + L);
Calendar oCalendar = Calendar.getInstance( ); // 현재 날짜/시간 등의 각종 정보 얻기
System.out.println("현재 년: " + oCalendar.get(Calendar.YEAR));
System.out.println("현재 월: " + (oCalendar.get(Calendar.MONTH) + 1));
System.out.println("현재 일: " + oCalendar.get(Calendar.DAY_OF_MONTH));
System.out.println(); // 다음줄로 행갈이 하기
System.out.println("현재 시: " + oCalendar.get(Calendar.HOUR_OF_DAY)); // 24시간제
System.out.println("현재 분: " + oCalendar.get(Calendar.MINUTE));
System.out.println("현재 초: " + oCalendar.get(Calendar.SECOND));
System.out.println();
// 12시간제로 현재 시
System.out.print("현재 시: " + oCalendar.get(Calendar.HOUR));
if (oCalendar.get(Calendar.AM_PM) == 0) System.out.println("am");
else System.out.println("pm");
System.out.println("현재 초의 1000분의1초: " + oCalendar.get(Calendar.MILLISECOND));
System.out.println("현재 요일: " + oCalendar.get(Calendar.DAY_OF_WEEK)); // 일요일 = 1
System.out.println("올해 몇 번째 날: " + oCalendar.get(Calendar.DAY_OF_YEAR)); // 1월 1일 = 1
System.out.println("올해 몇 번째 주: " + oCalendar.get(Calendar.WEEK_OF_YEAR)); // 1월 1일은 = 1
System.out.println("이번 달의 몇 번째 주: " + oCalendar.get(Calendar.WEEK_OF_MONTH)); // 첫째 주 = 1
import java.util.*;
public class Date {
public static void main(String[] args) {
Date start = new Date();
System.out.println( " ==> " + start );
System.out.println( " ==> " + start.toString() );
long L = System.currentTimeMillis() / 1000;
System.out.println("current unixtime is :" + L);
Calendar oCalendar = Calendar.getInstance( ); // 현재 날짜/시간 등의 각종 정보 얻기
System.out.println("현재 년: " + oCalendar.get(Calendar.YEAR));
System.out.println("현재 월: " + (oCalendar.get(Calendar.MONTH) + 1));
System.out.println("현재 일: " + oCalendar.get(Calendar.DAY_OF_MONTH));
System.out.println(); // 다음줄로 행갈이 하기
System.out.println("현재 시: " + oCalendar.get(Calendar.HOUR_OF_DAY)); // 24시간제
System.out.println("현재 분: " + oCalendar.get(Calendar.MINUTE));
System.out.println("현재 초: " + oCalendar.get(Calendar.SECOND));
System.out.println();
// 12시간제로 현재 시
System.out.print("현재 시: " + oCalendar.get(Calendar.HOUR));
if (oCalendar.get(Calendar.AM_PM) == 0) System.out.println("am");
else System.out.println("pm");
System.out.println("현재 초의 1000분의1초: " + oCalendar.get(Calendar.MILLISECOND));
System.out.println("현재 요일: " + oCalendar.get(Calendar.DAY_OF_WEEK)); // 일요일 = 1
System.out.println("올해 몇 번째 날: " + oCalendar.get(Calendar.DAY_OF_YEAR)); // 1월 1일 = 1
System.out.println("올해 몇 번째 주: " + oCalendar.get(Calendar.WEEK_OF_YEAR)); // 1월 1일은 = 1
System.out.println("이번 달의 몇 번째 주: " + oCalendar.get(Calendar.WEEK_OF_MONTH)); // 첫째 주 = 1
}
}
}