Struts 환경 설정

Struts 환경 설정

http://www.apache.org

에서 아래의 Library 와 documents 압축 파일을 받는다.

http://mirror.khlug.org/apache/struts/library/struts-1.3.10-lib.zip

http://mirror.khlug.org/apache/struts/documentation/struts-1.3.10-docs.zip

적당한 곳에 압축을 풀고

docs는 api 를 보는 용도로

lib 폴더에 있는 jar 파일은 struts framework 를 사용할 때 쓴다.

1. Eclipse 에서 Struts Framework 을 사용하기 위해서 lib 폴더의 jar 파일을

Eclipse 웹 프로젝트 아래 WebContent/WEB-INF/lib 폴더에 복사해서 사용한다.

2. 웹 프로젝트 아래 WebContent/WEB-INF 아래 struts-config.xml 파일을 생성한다.


<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts-config PUBLIC
 "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
 "http://struts.apache.org/dtds/struts-config_1_3.dtd">

을 복사한 후 사용한다.

Comment are closed.