tailieunhanh - Java & XML 2nd Edition solutions to real world problems phần 9

Như bạn có thể thấy, điều này dễ dàng biến Perl-dựa trên ứng dụng đơn giản của thư viện vào một thành phần có khả năng cung cấp thông tin hữu ích cho các khách hàng, bao gồm cả các kỹ thuật hiệu sách. Ngoài ra, chúng tôi đã có thể thực hiện điều này mà không cần cài đặt phần mềm mới, | Java XML 2nd Edition Figure 14-3. XML output from As you can see this easily turned the library s simple Perl-based application into a component capable of supplying useful information to its clients including the technical bookstore. Additionally we were able to accomplish this without installing new software changing the architecture of the library s system or application or even writing a line of Java With the Foobar Public Library allowing access to an XML listing of its new books is moving closer to its goal of providing up-to-date content to its customers. In addition already has an established standard for using Java for application development. This makes the process of accessing and using the XML from the library even easier as Java has the excellent support for XML we have been looking at throughout this book. You ll need to allow to provide an online listing of new books first and then look at how to get this information out to its customers automatically. Filtering XML Data If you remember the Foobar Public Library allowed books on several different subjects to be entered into its system wants only the books about computer-related subjects. Fortunately the library captured this information in the subject attribute of the book element for each book in its XML data. The first task is to filter out any book whose 333 Java XML 2nd Edition subject is not Computers . Once the technical books have been obtained they should be formatted into an HTML page that can be shown to customers visiting . For this company and application there is no static HTML since the page showing new listings must be generated each time it is accessed. I m going to use a servlet here for handling these responses. Although Apache Cocoon would be an excellent choice for converting the XML data from the library into an HTML response is

crossorigin="anonymous">
Đã 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.