Cấu trúc Struts 2 | 64 bài hướng dẫn Struts2 miễn phí hay nhất PDF cau truc struts 2

4 72 0
Cấu trúc Struts 2 | 64 bài hướng dẫn Struts2 miễn phí hay nhất PDF cau truc struts 2

Đang tải... (xem toàn văn)

Thông tin tài liệu

http://vietjack.com/struts_2/index.jsp Copyright © vietjack.com Cấu trúc Struts Struts MVC Framework, tổ hợp nhiều thành phần Mẫu MVC Struts bao gồm thành phần cốt lõi, là:  Action  Interceptor  Value Stack / OGNL  Result type  Các công nghệ View Từ thành phần cốt lõi trên, phần trình bày cho bạn Struts Flow theo hai cách, Basic Flow Standard Flow Qua giúp bạn có nhìn khái quát vòng đời Struts Struts Basic Flow Bạn theo dõi sơ đồ đây: http://vietjack.com/ Trang chia sẻ học online miễn phí Page http://vietjack.com/struts_2/index.jsp Copyright © vietjack.com Các bước diễn giải sau: Người dùng gửi yêu cầu (request) cho Action Controller triệu hồi ActionInvocation ActionInvocation triệu hồi Interceptor Action Một kết tạo Kết gửi lại ActionInvocation Một HttpServletResponse tạo Phản hồi (response) gửi tới người dùng Struts Standard Flow (Cấu trúc Struts 2) Bạn theo dõi sơ đồ sau: http://vietjack.com/ Trang chia sẻ học online miễn phí Page http://vietjack.com/struts_2/index.jsp Copyright © vietjack.com Người dùng gửi yêu cầu (request) cho Action Container ánh xạ request web.xml file lấy tên lớp Controller Container triệu hồi Controller (StrutsPrepareAndExecuteFilter FilterDispatcher) Bắt đầu từ Struts 2.1, lớp StrutsPrepareAndExecuteFilter Controller lấy thơng tin cho Action từ ActionMapper Controller triệu hồi ActionProxy ActionProxy lấy thông tin Action Interceptor Stack từ Configuration Manager mà lấy thông tin từ struts.xml file http://vietjack.com/ Trang chia sẻ học online miễn phí Page http://vietjack.com/struts_2/index.jsp Copyright © vietjack.com ActionProxy chuyển tiếp request tới ActionInvocation ActionInvocation triệu hồi Interceptor Action Một kết tạo 10 Một kết tạo 11 Một HttpServletResponse tạo 12 Phản hồi (response) gửi tới người dùng http://vietjack.com/ Trang chia sẻ học online miễn phí Page ... gửi tới người dùng Struts Standard Flow (Cấu trúc Struts 2) Bạn theo dõi sơ đồ sau: http://vietjack.com/ Trang chia sẻ học online miễn phí Page http://vietjack.com /struts_ 2/ index.jsp Copyright... từ Configuration Manager mà lấy thông tin từ struts. xml file http://vietjack.com/ Trang chia sẻ học online miễn phí Page http://vietjack.com /struts_ 2/ index.jsp Copyright © vietjack.com ActionProxy... file lấy tên lớp Controller Container triệu hồi Controller (StrutsPrepareAndExecuteFilter FilterDispatcher) Bắt đầu từ Struts 2. 1, lớp StrutsPrepareAndExecuteFilter Controller lấy thông tin cho

Ngày đăng: 02/12/2017, 21:11

Từ khóa liên quan

Mục lục

  • Cấu trúc Struts 2

    • Struts 2 Basic Flow

    • Struts 2 Standard Flow (Cấu trúc Struts 2)

Tài liệu cùng người dùng

Tài liệu liên quan