'java'에 해당되는 글 32건

  1. 2007.01.23 [sample] request 객체 모두 출력하기
  2. 2007.01.23 [sample] Hashtable key&Value 가져오기 1
Enumeration enum = req.getParameterNames ();
    while (enum.hasMoreElements()) {
        String name = (String) enum.nextElement();
        String values[] = req.getParameterValues(name);
  
        if (values != null) {
            for (int i=0; i< values.length; i++) {
            out.println (name + "( " + i +" )" + values[i]);
        }
    }
}

디버깅이나 parameter 객체를 모두 찾을때 효과적임
Hashtable hsTable = new Hashtable ();

Enumeration e = hsTable.keys();
while(e.hasMoreElements()){
    String sKey = e.nextElement().toString();
    String hsElement = (String)hsTable.get(sKey);
}

매번 짜면서 헷갈린다.
1 2 3 4 

글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!