intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

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

Chia sẻ: Thanh Cong | Ngày: | Loại File: PDF | Số trang:50

129
lượt xem
27
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P15- 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....

Chủ đề:
Lưu

Nội dung Text: XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P15

  1. 682 Appendix C Source Code for bonForum Web Application enable debugging information: XSLT processor version:  Xalan-Java 1 
  2. C.65 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\system_executes_command.jsp 683 value=”Xalan-Java 2”>Xalan-Java 2  Xalan-Java 1  Xalan-Java 2 
  3. 684 Appendix C Source Code for bonForum Web Application pageContext.getAttribute(“bonForumStore”, 4); %> hitTimeMillis: initDate: reset hitTimeMillis! hitTimeMillis: initDate: hitTimeMillis: initDate: —%> C.66 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\system_sets_timeout.jsp bonForum
  4. C.66 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\system_sets_timeout.jsp 685 This JSP can be used to test and experiment with session lifetimes. A setting of -1 means sessions do not timeout on the server. If you set another value, the sessions will timeout if browser inactivity exceeds that number of minutes. When a session times out, the user will be sent back to first page of webapp, and their nickname will remain unavailable until bonForum restart. Later, a user manager feature will be added to authenticate users and restore their nicknames and other data. Note that applet activity alone does not prevent session timeout. Current Maximum Chat Inactivity in Minutes:
  5. 686 Appendix C Source Code for bonForum Web Application C.67 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_executes_choice.jsp bonForum
  6. C.67 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_executes_choice.jsp 687 join a chat start a chat exit this forum
  7. 688 Appendix C Source Code for bonForum Web Application C.68 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_joins_chat.jsp bonForum /bonForum/noframe/html.index
  8. C.69 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_joins_chat_controls.jsp 689 C.69 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_joins_chat_ controls.jsp bonForum
  9. 690 Appendix C Source Code for bonForum Web Application value=”yes”> C.70 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_joins_chat_frame. jsp 0) { String subject = “”; String topic = “”; subject = chatItem.substring(0, chatItem.indexOf(‘[‘) - 1); subject = subject.replace(‘_’, ‘ ‘); topic = chatItem.substring(chatItem.indexOf(‘[‘) + 1, chatItem.lastIndexOf(‘]’)); chatItemMessage = “chat: “ + subject + “ —> “ + topic; } %>
  10. C.70 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_joins_chat_frame.jsp 691 Since chat selection based on flag is not yet implemented, and XSLT needs one parameter, we pass an empty string for now. —%> bonForum NO> —%>
  11. 692 Appendix C Source Code for bonForum Web Application C.71 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_joins_chat_ ready.jsp bonForum
  12. C.72 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_joins_chat_robot.jsp 693 so the applet on the client can find it! —%> C.72 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_joins_chat_ robot.jsp bonForum
  13. 694 Appendix C Source Code for bonForum Web Application Plugin tag OBJECT or EMBED not supported by browser. C.73 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_starts_chat.jsp
  14. C.74 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_starts_chat_controls.jsp 695 request.getServerName() + “:” + request.getServerPort() + “/bonForum/jsp/forum/visitor_starts_chat_frame.jsp”); session.setAttribute(“refresh”, “true”); session.setAttribute(“increment”, “5000”); session.setAttribute(“limit”, “5000”); session.setAttribute(“message”, “refreshing...”); %> —%> bonForum /bonForum/noframe/html.index C.74 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_starts_chat_ controls.jsp
  15. 696 Appendix C Source Code for bonForum Web Application displayed by input form element —%> bonForum
  16. C.75 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_starts_chat_frame.jsp 697 Then enter a description for your new chat: Will you moderate this chat? YES NO C.75 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_starts_chat_ frame.jsp 0) { chatSubjectMessage = “category: “ + chatSubject; }
  17. 698 Appendix C Source Code for bonForum Web Application %> 0) { chatTopicMessage = “topic: “ + chatTopic; } %> bonForum
  18. C.76 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_starts_chat_ready.jsp 699 C.76 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_starts_chat_ ready.jsp bonForum
  19. 700 Appendix C Source Code for bonForum Web Application request.getServerPort() + “/bonForum/jsp/forum/host_executes_chat.jsp”); request.setAttribute(“refresh”, “true”); request.setAttribute(“increment”, “100”); request.setAttribute(“limit”, “1”); request.setAttribute(“message”, “Preparing new chat!”); %> C.77 Filename: TOMCAT_HOME\webapps\ bonForum\jsp\forum\visitor_starts_chat_ robot.jsp bonForum
  20. C.77 Filename: TOMCAT_HOME\webapps\bonForum\jsp\forum\visitor_starts_chat_robot.jsp 701 Plugin tag OBJECT or EMBED not supported by browser.
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
12=>0