Databases Reference
In-Depth Information
}
catch (java.io.IOException e){}
out.println("<CENTER><font color='#000000'><H1><B><I>" + fortune +
"</I></B></H1></font><BR></CENTER>");
out.println("</BODY></HTML>");
out.close();
java.util.Calendar ts = java.util.Calendar.getInstance();
java.lang.String info = "On " + ts.getTime().toString() + " received
request from " + request.getRemoteAddr();
System.out.println(info);
(new WriteToFile(info)).start();
}//end doGet()
}//end class FortuneClientServlet
Exhibit 34-10. ( continued )
e
Your lucky fortune/quotation... - Microsoft Internet Explorer
e
*
Back Forward Stop Refresh Home Search Favorites History Channels Fullscr
Address
e
http://127.0.01: 8080/servlet/Fortune Client Servlet?B1=1%27m+daring+enough+to+push+this+button%21
Links e
e
e
e
e
Best of the Web
Channel Guide
Customize Links
Internet Explorer News
Internet Start
File Edit View Go Favorites Help
A man may die, nations may rise and fall,
but an idea lives on. Ideas have endurance
without death.
Your lucky numbers are: 28, 48, 17, 36, 12
e
e
Internet zone
e
Your lucky fortune/quotation... - Microsoft Internet Explorer
e
*
Back Forward Stop Refresh Home Search Favorites History Channels Fullscr
Address
e
http://127.0.01: 8080/servlet/Fortune Client Servlet?B1=1%27m+daring+enough+to+push+this+button%21
e
Links e
e
e
e
Internet Explorer News
Internet Start
Best of the Web
Channel Guide
Customize Links
File Edit View Go Favorites Help
Always remember that the future comes one
day at a time.
Your lucky numbers are: 47, 17, 27, 18, 13
e
e
Internet zone
Done
Exhibit 34-11. Random fortunes and quotations as seen by the client.
Search WWH ::




Custom Search