티스토리 툴바

 

 

 

 
분류 전체.. (48)
STUDY (1)
Mobile (3)
My Life (37)
Project (0)
java  MT  강촌  음식  가평  속초여행  로젠리타  아침고요수목원  LISTEN  양파 
 [Look Down th..
└>바람나무, 생..
«   2012/05   »
    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    
+ Total : 3,916
+ Today : 0
+ Yesterday : 1
  

 

 

 

Struts 를 배워보자
+   [STUDY/JSP Study]   |  2009/10/12 15:53  
1. http://struts.apache.org/downloads.html
Struts 1.3.10  다운로드

2. 압축해제후 web.xml에서 다음부분 복사

3. eclipse 프로젝트에 web.xml에 다음부분 추가

web.xml 설정

    <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>


    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>

4 .eclipse  src폴더에 common 패키지 추가 후 struts 폴더의 MessageResources.properties 파일 복사
하여 넣기

5. struts-config.xml, validation.xml 파일을 webContent 에 추가 page폴더와 index.jsp도 추가

6.struts-config.xml 파일에서 다음부분을 아래처럼 수정

 <message-resources parameter="common.MessageResources" />


7.서버에서 추가한 struts 프로젝트 추가




 
 
     ,
     0   1
이 글의 관련글(트랙백) 주소 ::    http://kirara.tistory.com/trackback/77 관련글 쓰기
2009/12/22 11:03
비밀댓글입니다

아이디 
비밀번호 
홈페이지 
비밀글   

 

<<이전 | 1 | 2 | 3 | 4 | 5 ... | 48 | 다음>>

키라라's Blog is powered by Daum