1. 다운로드
http://struts.apache.org/2.0.8/index.html
struts2
1. 다운로드
http://struts.apache.org/2.0.8/index.html
struts2
가운데 하얀색으로 Download Now 라는 버튼이 있다. 버튼을 클릭하면 다운로드 페이지로 이동한다.
Apache struts 2
is an elegant, extensible framework for creating enterprise-ready Java
web applications. It is available in a full distribution, or as
separate library, source, example and documentation distributions.
struts 2.0.8 is the "best available" version of struts.
- Full Distribution:
- Example Applications:
- Blank Application only:
- Essential Dependencies Only:
- Documentation:
- Source:
- Alternative Java 4 JARs:
여기서 struts-2.0.8-all.zip 을 다운받는다.
2. 압축풀고 톰캣 webapp에 war 파일들 복사
struts-2.0.6-all 압축푼 폴더
압축을 풀면 위와 같이 여러 폴더가 보일것이다.
그중 apps 폴더의 모든 war 파일을 가져다 Tamcat 폴더의 Webapp 폴더밑에 복사한다. 복사 후에 톰캣을 실행하면 아래와 같이 폴더가 만들어진다.
struts2-blank-2.0.6.war struts2-mailreader-2.0.6.war struts2-portlet-2.0.6.war /struts2-showcase-2.0.6.war
톰캣 실행 중에 war 파일을 복사해 놓으면 자동으로 풀린다.
3. 맛보기
자 이제 톰캣 매니저로 가보면 아래와 같이 struts2의 4개의 예제가 있을겁이다.
그중 struts2-blank-2.0.6 을 선택하니 아래와 같이 뜨네요!!
HelloWorld 찍은 모습
출처 : 범이(kkbum2000) |