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

XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P8: 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 | 332 Chapter 10 JSP Taglib The bonForum Custom Tags The outputPathNarnes tag can be seen in use on the JSP page visitor_starts_chat_ which presents the chat visitor with available chat subjects for a new chat. Here is the custom tag as it appears on the JSP select size 12 name chatSubject bon outputPathNames docName bonForumXML pathToSubTreeRootNode ancestorReplacer COMPLETE_PATHS nodeSeparator option output option bon outputPathNames select One of the strengths of custom tags is their reusability. It might seem strange therefore that the outputPathNarnes tag is used only in one place in bonForum to output node paths to chat subject elements from the XML database. The project is a prototype and so is the tag. The tag design attempts to include features that will make it useful in other situations when hierarchical information kept in XML needs to be transformed into sorted lists of node paths. We will start by showing the descriptor and the code for the tag. We ll continue with brief discussions of its attributes and methods and finally we ll include some notes on its design. The outputPathNames Descriptor The following listing shows the Tag element in the bonForum TLD that describes the outputPathNarnes custom action tag -- outputPathNarnes tag -- tag name outputPathNames name tagclass tagclass teiclass teiclass bodycontent JSP bodycontent info Outputs pathNames node paths from subTree of XML tree or forest. Note ignores chatitem nodes in bonForumXML. info attribute name docName name required true required attribute attribute name pathToSubTreeRootNode name required true required attribute attribute The OutputPathNamesTag Class 333 name ancestorReplacer name required true required attribute attribute name nodeSeparator name required true required attribute tag Note that the only attribute that does anything in this book release of bonForum is .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.