Đang chuẩn bị liên kết để tải về tài liệu:
Mastering Jakarta Struts phần 4

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Trong chương này, chúng ta bắt đầu bảo hiểm Jakarta Struts của chúng tôi. Đầu tiên, chúng tôi giải thích các bước mà bạn phải thực hiện khi cài đặt và cấu hình một ứng dụng Struts. Sau đó, chúng tôi tạo ra một ứng dụng mẫu để hiển thị các thành phần của một ứng dụng Struts làm việc. | Chapter 5 The Views In this chapter we examine the View component of the Struts framework. Some of the topics that we discuss are using tags from Struts tag libraries using ActionForms and deploying Views to a Struts application. The goal of this chapter is to give you an understanding of the Struts View and the components that can be leveraged to construct the View. Building a Struts View As we discussed in Chapter 1 Introducing the Jakarta Struts Project and Its Supporting Components the Struts View is represented by a combination of JSPs custom tag libraries and optional ActionForm objects. In the sections that follow we examine each of these components and how they can be leveraged. At this point you should have a pretty good understanding of what JSPs are and how they can be used. We can now focus on how JSPs are leveraged in a Struts application. JSPs in the Struts framework serve two main functions. The first of these functions is to act as the presentation layer of a previously executed Controller Action. This is most often accomplished using a set of custom tags that are focused around iterating and retrieving data forwarded to the target JSP by the Controller Action. This type of View is not Struts-specific and does not warrant special attention. The second of these functions which is very much Struts-specific is to gather data that is required to perform a particular Controller Action. This is done most often with a combination of tag libraries and ActionForm objects. This type of View contains several Struts-specific tags and classes and is therefore the focus of this chapter. Deploying JSPs to a Struts Application Before we can begin looking at the role of a JSP in the Struts framework we must take a look at how JSPs are deployed to the framework. JSPs are most often the target of a previous request whether they are gathering or presenting data usually makes no difference as to how they are deployed. All JSPs should be deployed to a Struts application

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.