TAILIEUCHUNG - XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P9

XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P9: Là một nhà phát triển Web, bạn biết những thách thức trong việc xây dựng các ứng dụng mạnh mẽ trên nhiều nền tảng. Tạo các ứng dụng di động trở nên thật sự có thể bằng cách sử dụng Java cho code và XML để tổ chức và quản lý dữ liệu. "XML, XSLT, Java, và JSP: Một trường hợp học" sẽ giúp bạn tối đa hóa khả năng của XML, XSLT, Java, và JSP trong các ứng dụng web của bạn | 382 Chapter 10 JSP Taglib The bonForum Custom Tags the transform tag is called invoking the methods of its handler following code in that handler from takes care of getting the style-sheet parameter String paraml String .getAttribute paraml if paraml null paraml The TransformTag class invokes an XSLT processing method in one of several ways depending on the tag attribute values. Every such invocation whether for Xalan-Java 1 or Xalan-Java 2 passes the style-sheet parameter as an argument like this inXML inXSL outDoc paraml How the Style Sheet works The first template in the style sheet matches the root node. It begins an HTML select element and then applies templates to all the nodes. A chat element is found whose itemKey value matches the paraml value passed by the JSP tag action. That is the current chat for the session. The children of that chat element are iterated looking for any guestKey one is found its value a nodeKey string is saved in the guestKey-value variable and the processing jumps to a different place altogether in the bonForum XML data Guest elements children of the node are a guest element nodeKey value matches the saved guestKey value that element is a guest in the chat. Its nickname age and rating element contents can now be concatenated as an HTML option for the select that is being built by this style sheet. The iteration of the guestKeys in the chat continues until all the HTML option strings have been output. The closing tag for the HTML select is output as well. Why the Style Sheet Is Used As we discussed in the section The changeChatActorRating Method in Chapter 8 a chat host has commands available to raise or lower the rating of any guest in the current chat. That functionality will later be extended to allow any chat actor to rate any other one in its chat. Now you know how that host gets a list

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.