본문 바로가기

Java

[Struts] 스트럿츠 기본구조

1. Struts 기본 구조

사용자 삽입 이미지

- MVC(Model, View, Control) 구조로 구성되어있음.

2. 구조도 설명
Client Brower : input 및 사용자가 이벤트가 발생을 함.
Controller ActionServlet : struts-config.xml 에서 페이지 멥핑 이루어져 이벤트에 따라 페이지
                                    를 보냄
input ActionForm : Client Brower에서 input 값과 동일한 set/get 메소드가 있는 Bean파일
Adapter Action    : DB와 연결및 처리 로직이 있는 Class파일
Model : 모델단계에서는 다른 모듈과 연결해서 사용가능함.