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

XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application- P5: 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 | 182 Chapter 7 JavaServer Pages The Browseable User Interface birds with one stone It would solve the refresh problem and give us material for our chapter about applets Chapter 9 Java Applet Plugged In bonForumRobot. Because we also wanted to avoid using scripting languages on the client side we decided not to pursue the experimentation with HTML pragma buffering pages and so on. Instead the robot applet idea was born and provided an alternative Java-related solution to the problems inherent in frequent refreshes of a page. For all the gory details of how it works read Chapter 9. We pointed out that the robot applet on the _robot JSP we are discussing gets its parameter values from session attribute values that are set on the top page in the group of pages handling the host executes chat phase of the Web application . If we look there again we will see by the value used to set the document session attribute that this particular applet instance will continually try to display the file named . This means that it is going to refresh the display of the chat messages that the host sees. That is something that we would like to do as frequently as possible allowing for the bandwidth and physical manifestation of such a repeatedly fired Web a guest in the chat adds a message we want it to show up in the display of all the users as soon as possible. How does the user break out of the frameset that is representing the host executes chat Web application phase We saw before in that the host can do one of three things send a message to the chat guests exit from this chat or enter command mode. Again this choice is presented in the code as follows table border 0 cellspacing 0 cellpadding 0 rows 4 cols 1 width 100 -bgcolor 00FFFF tr label for bonCommand send this message label input type radio name bonCommand value host_executes_chat_controls CHECKED input tr tr label for bonCommand exit .