'분류 전체보기'에 해당되는 글 68건

  1. xml 기상청 날씨 파싱
  2. 대용량 텍스트 파일열기 1
  3. 이클립스 디컴파일
  4. UTF-8 > EUC - KR
  5. Spring2.5 + Jeus5.0 + Ibatis 1
  6. 오라클 버전확인
  7. Eclipse jQuery Plugin
  8. jquery 로그인 Null 체크
  9. KeyTweak
  10. 하드디스크 수명확인하기 1

xml 기상청 날씨 파싱

   
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.List" %>
<%@page import="java.net.URL" %>
<%@page import="org.jdom.Document" %>
<%@page import="org.jdom.Element" %>
<%@page import="org.jdom.input.SAXBuilder" %>
<%@page import="org.xml.sax.*" %>
<%@page import="java.text.*" %>







<%
 List list = null;
 try
 {
  SAXBuilder parser = new SAXBuilder();
  parser.setValidation(false);
  parser.setIgnoringElementContentWhitespace(true);
  URL url = new URL("http://www.kma.go.kr/wid/queryDFS.jsp?gridx=59&gridy=125");
  InputSource is = new InputSource(url.openStream());
  Document doc = parser.build(is);
  Element root = doc.getRootElement();

  Element channel = root.getChild("body");
  list = channel.getChildren("data");
%>
<%
   Element el = (Element)list.get(0);
 %>
 
   
  • ---------------------------------
  • 시간:<%=el.getChildText("hour")%>시
  • 현재온도:<%=el.getChildText("temp")%>℃
  • 최고온도:<%=el.getChildText("tmx")%>℃
  • 최저온도:<%=el.getChildText("tmn")%>℃
  • 날씨:<%=el.getChildText("wfKor")%>
  • 강수확률:<%=el.getChildText("pop")%>%
  • 습도:<%=el.getChildText("reh")%>%
  • ---------------------------------


  • <% }catch(Exception e){ e.getStackTrace(); }


    대용량 텍스트 파일열기

    대용량 text 파일 열기

     

    LTFViewr.zip

    대용량 로그 파일을 볼때, editplus 나 notepad 로 열리지 않을때 사용하면 됨

    이클립스 디컴파일

    UTF-8 > EUC - KR

    
    
        
    
            
    
        
    
        
    
        
    
      
    ""/> "/>
    UTF-8 에서 EUC-KR로 데이터 전송.. 데이터가 깨저서 나올때 UTF8 에서 - EUC-KR

    Spring2.5 + Jeus5.0 + Ibatis

    
    
    
    
    
    
    
    
    
    
     
    
     
    
     
    
    
    
     
    
      
    
      
    
      
    
      
    
     
    
    
    
     
    
      
    
      
    
       
    
     
    
    
    
    
    
    
    
    
    Spring Ibatis Clob 문제 처리하는 방법입니다. 
    
    Clob Insert 할시
    
    
    Check the howtobest.insert-InlineParameterMap.  
    
    --- Check the parameter mapping for the 'content' property.  
    
    --- Cause: java.sql.SQLException: 데이터 크기가 해당 유형의 최대 크기보다 큽니다: 262440
    
    
    
    문제발생시 
    
    
    
    
    
    
    
    
    
      
    
       
    
     
    
    
    추가로 해결되었다.
    
    
    
    
    
    
    

    오라클 버전확인

    select * from v$version;



    결과

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production 

    Eclipse jQuery Plugin

    http://download.aptana.org/tools/studio/plugin/update/studio/

    aptana plugin

    http://download.aptana.org/tools/studio/plugin/install/frameworks/

    jQuery CodeAssist

    순서 
    aptana plugin
    jQuery CodeAssist

    jquery 로그인 Null 체크

    $('#login').click(function() {
    if($('#uId').val()==""&&$('#pwd').val()==""){
    alert('아이디 와 패스워드를 입력해주세요');
    $('#uId').focus();
    }else if($('#uId').val()==""){
    alert('아이디 를 입력해주세요');
    $('#uId').focus();
    }else if($('#pwd').val()==""){
    alert('패스워드 를 입력해주세요');
    $('#pwd').focus();
    }else{
    $("#idForm").submit();
    }
    });

    KeyTweak


    KeyTweak 2.3 키보드 위치변환 

    하드디스크 수명확인하기