June 2005
Beginner to intermediate
336 pages
6h 29m
English
When chat.html wants to display the current user comments in its top frame, it sends chat.jsp the parameter t, set to “1”. Here's how the code at the beginning of chat.jsp checks that parameter:
<%
if(request.getParameter("t") != null &&
request.getParameter("t").equals("1")){
%>
.
.
.
If it's time to display the current user comments, they need to be fetched from the application object. Chat keeps track of eight user comments at a time, named “text0” through “text7”, as stored in the application object, and they can be retrieved using application.getAttribute("text0") and so forth. Besides simply displaying this text, chat.jsp must also tell the browser to come back in 5 seconds and get the user comments ...
Read now
Unlock full access