|
|
HomeworksHW# 1 (March 2nd, 2007): Install Tomcat. You can get it at www.apache.org. Install it. After installing, create a GuestBook. Note that JSP files go into the ``webapps/ROOT'' folder (or you can create your own folder, as long as it's under ``webapps'' it will work). A guestbook is made up of 2 pages. gbook.jsp, and gbook_submit.jsp. gbook.jsp reads DB, displays results, and displays form. The form goes to gbook_submit.jsp, which reads parameters, and inserts them into DB---it then forwards back to gbook.jsp. That's it. HW# 2 (March 12th, 2007): Create a Forum. More details in class. The forum has 4 pages: threads.jsp (view subjects, create a new thread form), threads_create.jsp (create a new thread, insert data into db), posts.jsp (view all posts for a particular threadid), and posts_create.jsp (add a post to a particular thread). HW# 3 (March 19th, 2007): Add login capability to your forum. If users don't have an account, have'em sign up. Only let registered users create threads, but let anyone reply to threads (with anonymous users if needed). Login involves storing some information in the user session---we'll discuss this in more detail in class. Don't use any login/user-management frameworks; build your own. HW# 4 (March 26th, 2007): Using Java RMI, create a chat server, and a chat client. It can be GUI, or it can be command line. Don't make it too complicated (we'll discuss the easy approach in class). HW# 5 (April 16th, 2007): Look over the codegen.zip source code, and write something equivalent only to generate Java code (currently, that code generates PHP). HW# 6 (April 30th, 2007): Create an AJAX guestbook. User submissions must be handled via an XMLHttpRequest (without a page refresh). Also, the guestbook should refresh every minute, to grab new content. ie: You should be able to open the guestbook in two different browser windows. Post something in first window, and have it appear (all by itself) in the 2nd window shortly afterwards. HW# 7 (May 7th, 2007): Create a PHP, or JSP, or ASP, (whichever) load balancing script. Whenever your script is accessed, it will forward a client to a random web-server in the pool. You'll also have another script that accepts the status of the nodes. Each node will nodify the primary server about its status every minute. If a server hasn't been heard from for 2 minutes, it is taken out of the pool. (I'll explain more about how to do this in class). HW# 8 (May 14th, 2007): Using Apache AXIS, create a Calculator ``Web Service''. Your web-service should provide the capability of addition, subtraction, division, multiplication, as well as aggregate functions, such as sum (given a list of numbers, sum them), avg (given a list of numbers, find average), standard deviation (given a list of numbers, get standard deviation), etc. Also write a client to let user access this web-service. Feel free to email me with any questions you may have.
|