getAttribute (1) 썸네일형 리스트형 세션에 저장된 값을 String 에 담는 방법 String str = Utils.getValue((String)session.getAttribute("str")); 다음은 Utils.getValue 에 대한 간단 설명. 패키지나 클래스, 파라미터 등등의 이야기는 빼고 간단한 내용만.. public static String getValue(String str) throws Exception { return this.getValue(String str,""); } public static String getValue(String str, String def) throws Exception { if(str==null) return def; String lVal = str.trim(); return lVal.length()==0 ? def : lValue; } 이전 1 다음