이클립스 Helios & tomcat7 에선 web.xml 이 없다.
일단 책하고 틀리다. ㅋㅋ 서블릿3.0 기술엔 WEB.XML이 없다.
그런데, 프로젝트에서 우측클릭 하면 서블릿 메뉴는 그대로 있다.
서블릿을 생성하면 클래스명 위에 어노테이션이 붙는데,
어노테이션으로 서블릿객체와 매핑 설정으로 변경되었다.

@WebServlet(description = "테스트 서블릿", urlPatterns = { "/TestServlet" })


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/03/25 16:54 2011/03/25 16:54
, , , , ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5995

 XML의 내용을 JQuery로 불러와서 Array로 파싱.
.get 으로 xml의 내용을 가져와서 .each 로 루프하면서 출력하는 테스트 .
querystring 으로 넘어오는 값도 받아서 적용한다.
Aptana 로 로컬에서 Javasrcipt 테스트 중. 완전 좋다.

<!DOCTYPE html PUBLIC "-//W3C//  DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>jQuery -> XML -> Array : Parse </title>
        <script src="jquery-latest.min.js" type="text/javascript">
        </script>
        <script type="application/javascript">
            
            
            
            $(function(){
            
                // 원하는 파라키터 호출
                var param01 = querySt("anum");
                //document.write(param01);
                $('#param01').html(param01);
                
                $.get("hello.xml", {}, function(xml){
                    $("item", xml).each(function(i){
                        var title = $(this).find("title");
                        
                        alert("title 의 개수는 총 " + $(this).find("title").size() + " 개 입니다.");
                        
                        $.each(title, function(j){
                        
                            $("#content_xml").append("j = " + j + " , " + $(this).text() + "<br />");
                            
                        });
                        
                        $("#contents").append(title.text());
                    });
                });
                
                $('p').each(function(index){
                    $(this).attr({
                        'id': "para-" + index
                    });
                });
                $('#btn').click(function(){
                    alert($('#para-1').text()); //태그내의 텍스트 읽어오기
                });
                
                
                // QueryString 호출
                function querySt(ji){
                    hu = window.location.search.substring(1);
                    gy = hu.split("&");
                    
                    for (i = 0; i < gy.length; i++) {
                        ft = gy[i].split("=");
                        if (ft[0] == ji) {
                            return ft[1];
                        }
                    }
                }
                
                
            }); //close $(
        </script>
    </head>
    <body>
        <div id='content_xml'>
        </div>
        <br/>
        <div id='param01'>
        </div>
        <br/>
        <div id='contents'>
        </div>
        <p>
            C#
        </p>
        <p>
            ASP.NET
        </p>
        <p>
            SilverLight
        </p>
        <input type="button" id="btn" value="동적으로 생성된 id로 접근" />
    </body>
</html>

hello.xml
<?xml version="1.0" encoding="utf-8"?>
 <item>
     <title>Ezra Pound</title>
     <title>Edward Nom</title>
     <title>Nippon Ds</title>
     <title>Chin</title>
     <title>wani</title>
     <title>金洪完</title>
     <title>上海</title>
     <title>Ngio.co.kr</title>
 </item>

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/03/25 13:51 2011/03/25 13:51
, , , ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5994

우리는 자기만족을 뛰어넘어
조직 환경에서도 일을 잘할 수 있는 사람을 찾는다.
학력이나 경력은 중요하게 생각하지 않는다.
그들이 해야 할 일을 완수할 수 있도록 필요한 모든 교육은
우리가 책임질 수 있으니까.
우리는 태도를 채용한다.
(We are looking for people who have to excel to satisfy themselves and
who work well in a collegial environment.
We don’t care that much about education and expertise,
because we can train people to do whatever they have to do.
We hire attitudes.
-허브 켈러허(Herb Kelleher)

점점 더 능력보다는 태도와 품성을 중요시하는 조직이
늘어날 것으로 확신합니다.
능력 개발보다는 인성과 태도를 교육시키기가 더욱 어렵기 때문입니다.
그러나 최우수 인재는 태도와 품성뿐만 아니라
능력도 동시에 갖출 수 있어야 한다는 것은 엄연한 사실입니다.

More and more companies are putting a greater emphasis on
attitude rather than skill.
It is much harder to try and reform someone’s mentality than it is to teach a skill.
However, it is undeniable that the most talented people
are those who possess an excellent character
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/03/25 09:08 2011/03/25 09:08
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5993

나는 매일 아침 걸어서 서재로 온다.
후미진 소금 늪지 위로 높이 솟은 모래 언덕에
서재와 소나무들, 나는 모래 언덕 꼭대기에 서서
몸을 녹이다가 소나무 밑을 걸어서 서재에 들어간 다음,
걸쇠가 걸리도록 문을 꽝 닫는다. 한동안 아무것도
보이지 않는다. 눈앞의 녹색 반점이 어두운
곳에 있는 다른 모든 것보다
더 강하게 빛난다.


- 애니 딜러드의《창조적 글쓰기》중에서 -


* 저도 매일 아침 걸어서 서재로 옵니다.
옹달샘 동쪽 언덕에 자리한 '고도원의 춘하추동'입니다.
봄 여름 가을 겨울, 계절마다 늘 새롭고 아름답습니다.
물론 날씨에 따라 마음마저 몹시 추운 날도 있고,
누군가와 연락이 두절되어 홀로 선 나무처럼
외로운 날도 있습니다. 그러나 서재 문을
꽝 닫고 책을 펼치면 몸과 마음에
다시 평온이 찾아옵니다. 

// 전 매일 아침 고양이와 처음 눈을 마주칩니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/03/25 09:07 2011/03/25 09:07
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5992


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2011/03   »
    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    
Statistics Graph

Site Stats

Total hits:
185616
Today:
619
Yesterday:
328