Conclusion
This chapter presented the Forecaster project, the finale to the 10 projects presented in this book for some Java fun. This was a particularly powerful project, reading weather forecast data from the National Weather Service, graphing it, and reporting it to you.
There are two versions of this project: a JSP, forecast.jsp, for online use, and Forecast.java, for desktop use. One or the other of these files is all you need. The JSP file runs like any other JSP file on a Java-enabled server, whereas you can run the .java file on your desktop.
This project starts by getting the user's ZIP Code. The online version uses cookies, URL encoding, and an HTML form to get and store the user's ZIP Code; the desktop version uses a dialog box and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access