티스토리 툴바


달력

01

« 2012/01 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  
  •  
2011/07/10 21:17

[JAVA] Reflection..사용.. Absorb Knowledge/JAVA/JSP2011/07/10 21:17


import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;


public class Reflection {

public static void main(String args[]) {

HashMap dataMap = new HashMap();

String key = args[0];
String val = args[1];


try{

Class klass = dataMap.getClass();
Method m = klass.getMethod("put", Object.class, Object.class);
Object o[]={key, val};
m.invoke(dataMap, o);

System.out.println("TEST::"+ dataMap.get(key));

}catch(Exception e){

e.getStackTrace();

}

}

}


저작자 표시

'Absorb Knowledge > JAVA/JSP' 카테고리의 다른 글

[JAVA] Reflection..사용..  (0) 2011/07/10
[JSP] xss 보안처리...  (0) 2010/09/27
[JSP] jsp 페이지 실행시 javascript 실행  (0) 2009/12/21
[JSTL] JSTL에서 비교문  (0) 2009/09/28
[iBatis] iBatis에서 LIKE 문 사용  (0) 2009/09/28
[JAVA] Decimal Format  (0) 2009/09/16
Posted by 진후햐


- index 정보
select * from user_indexes where table_name = 'TABLE_NAME';

- index컬럼정보
select * from user_ind_columns where table_name = 'TABLE_NAME';

저작자 표시

'Absorb Knowledge > Oracle' 카테고리의 다른 글

[Oracle] table에서 사용중인 index정보 확인..  (0) 2011/05/25
oracle sysdate  (0) 2010/03/01
[Oracle] Sequence  (0) 2010/02/16
[Oracle] commit 데이터 복구  (0) 2009/09/27
[Tip]jdbc oracle 연동시 에러 모음  (0) 2009/09/21
oracle bpel  (0) 2009/05/18
Posted by 진후햐
2011/04/13 09:47

기다리다 미쳐... Rrard.G/My space2011/04/13 09:47


완전히 끝났구나 라고 생각했는데...

그래서 나는 다음 목적지를 새로설정했는데...

메일 한통이 날라와서 다시 희망을 불어 넣어줬다...

너무 기뻤는데 아직까지 마무리가 안되네.

남들은 다 끝난거라고 하지만 난 아직 긴장을 늦추지 않겠다.

저작자 표시

'Rrard.G > My space' 카테고리의 다른 글

기다리다 미쳐...  (0) 2011/04/13
Lover  (0) 2008/12/25
나사가 풀렸어  (0) 2008/10/02
동원 예비군 훈련  (0) 2008/07/04
'아침의 차 한잔이 인생을 결정한다'  (0) 2008/06/04
자신의 바람기는?  (0) 2007/10/05
Posted by 진후햐
이클립스에 Decompiler plugin... 설치

http://java.decompiler.free.fr/jd-eclipse/update
저작자 표시

'Absorb Knowledge > in addtion' 카테고리의 다른 글

[Eclipse] 이클립스 Decompiler  (0) 2011/01/25
initializing java tooling 30%...  (4) 2010/01/05
[eclipse] properties editor plugin 설치  (0) 2009/11/04
서버 접속시 Your password has expired  (0) 2009/10/14
tar 파일  (0) 2009/09/14
베블런 효과(veblen effect)  (0) 2008/11/23
Posted by 진후햐
2010/09/27 13:32

[JSP] xss 보안처리... Absorb Knowledge/JAVA/JSP2010/09/27 13:32

기본적인? cross site script 방지 ..

if(xssSecurity()){
      alert("특수 문자를 사용할 수 없습니다.\n\n"
          +"제한된 특수문자 목록\n\n"
          +"[ < ] [ > ] [ ' ] [ -- ] [ = ]");
      return false;
    }

function xssSecurity(){
    alert("xssSeurity");
    var frm = document.inputform;
//    var special = "<>'-=";
    var text_len = frm.txt_wcontents.value.length;
    var textArray = frm.txt_wcontents.value;
    var text="";
    for (var i=0 ; i < text_len; i++){
      text = textArray.charAt(i);
      if(text=="<" || text==">" || text=="'" || text=="-" || text=="="){
        return true;
      }
      
    }
    return false;
  }



저작자 표시

'Absorb Knowledge > JAVA/JSP' 카테고리의 다른 글

[JAVA] Reflection..사용..  (0) 2011/07/10
[JSP] xss 보안처리...  (0) 2010/09/27
[JSP] jsp 페이지 실행시 javascript 실행  (0) 2009/12/21
[JSTL] JSTL에서 비교문  (0) 2009/09/28
[iBatis] iBatis에서 LIKE 문 사용  (0) 2009/09/28
[JAVA] Decimal Format  (0) 2009/09/16
Posted by 진후햐