본문 바로가기

Web

Use struts2 & tomcat in eclipse / 이클립스에서 struts2과 톰캣 사용하기


Dynamic web project를 생성해서 struts를 사용하는 예는 위 카페에 잘 나와있다.

실제로 해보면 (위의 경우는 간단하지만) struts.xml을 변경하는 등 좀더 세심한 작업으로 들어가면 struts2의 버전에 따라 말썽을 부릴 때가 있다. 

이럴때는 그냥 

이렇게 실제 2.2.1버전 혹은 x.x.x버전의 getting-started.html페이지를 이용해 보는 것이 더 나을지도 모른다. 

읽어 보다보면 


Our First Application

To get started using Struts 2 we will create a web application with the required Struts 2 artifacts in WEB-INF lib and use Ant to build the application. Then we will create the same application using Maven to manage the artifact dependencies.

You can download all the tutorial examples from Google Code - http://code.google.com/p/struts2-examples/downloads/list.

Click on the link for whichever technology (Ant or Maven) you're familiar with.

Create Struts 2 Web Application With Artifacts In WEB-INF lib and Use Ant To Build The Application

Create Struts 2 Web Application Using Maven To Manage Artifacts and To Build The Application

Children Show Children


저위의 google code의 example들을 다운로드 받아서 실행해 보는 것도 괜찮다. 

왜냐하면 사실 새로 설치해서 노가다를 해보는 것도 좋지만 ... ;;

한 번 정도면 족하다. 버전별로 설정을 잘못할 경우 하루를 다 날리는 경우도 많다. 

실제 우리가 원하는 것은 struts2 설정 잘하기가 아닌 struts2를 이용한 web 어플의 제작일테니 말이다. 

혹시 책을 보고 따라한다면 이런 종류의 개발 셋팅은 책에 써있는 라이브러리의 버전을 그~~대로 베끼는 것을 캐 추천 한다. 




application : 적용, 신청, 원서, 응용, 이용

'Web' 카테고리의 다른 글

손쉬운 홈페이지 만들기  (0) 2011.09.12
javascript tutorial 페이지  (0) 2011.05.03
web개발 관련 최신 정보가 올라와있네  (0) 2011.04.30
jstl  (0) 2011.04.28
color picker  (0) 2011.04.14