TAILIEUCHUNG - Professional Java JDK 6 Edition 2007 phần 6

có hơn bằng cách sử dụng Java serialization hoặc XMLEncoder / giải mã. Trong mô hình ví dụ các dữ liệu cấu hình được sử dụng trong chương này, bạn sử dụng một thể hiện của cuốn sách cấu hình để đại diện cho mô hình. Nó chứa Java đại diện của các điểm và màu sắc. Để sử dụng JAXB tạo ra cấu hình mô hình | Chapter 7 Developing Web Applications Using the Model 1 Architecture description PIG-Latin description name pigLatin name function-class function-class function-signature pigLatin function-signature function function description Dirty Word Replacement description name dwReplacement name function-class function-class function-signature dwReplacement function-signature function taglib As this example demonstrates EL library extensions are powerful features that strengthen developer s capabilities for web development. The function methods described here are easily mapped to public static methods in Java classes that can be accessed by EL constructs throughout your web application. Code Reuse with .tag and .tagx Files The implementation of .tag and .tagx file syntax delivered with JSP implementations allows for better code reuse by enabling developers to encapsulate common behavior that can be easily shared across components. Those familiar with older code conventions used to craft custom tag libraries should recognize this and embrace these amendments for defining reusable custom actions with great enthusiasm. The following code snippet demonstrates how tag files can be implemented for reuse by other web applications. In this example a portlet-like visualization component is crafted using a tagged file named . Two parameters title and color are passed into the portlet tag file to dynamically alter those properties in the component display @ taglib prefix tags tagdir WEB-INF tags html head title tagx test title head body table width 100 tr td tags portlet title Portlet color 0000ff Test 1 tags portlet td tr table body html The file encapsulates the portlet component and renders the title and color features passed into the file by the preceding script -- @ attribute name title required true @ attribute name .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.