Spring Semester 2009


Thu Sep 03
List of students and ports this semester.

Fri May 01
Link to individual appointments script.

Final exam date: for our starting time (12:20 and 1:20 p.m. Tu,Th,Sa) the final is at 7:15-9:15 p.m., Thurs., May 7

Database queries for Homework Three: here.

The code we developed in class today.

Here are three files implementing a nice idea by Mason:

Idea is good, looks like Homework Five.

Note that main collects all the finalize of all the screens.

Tue Apr 28
Here's some code we will look at today.

Notes from class today.

Thu Apr 23
Today in class we will introduce ASP.NET 3.5 with C# using Visual Studio 2008.

Things to use as reference during this process: Overview, Getting Started.

We will also connect some various other loose ends (from last time, from lab last week etc.)

Tue Apr 21
In class notes will be available in real time here.

Thu Apr 16
Code developed in class today: servlet, JSP.

Tue Apr 14
Notes from today's class.

Sat-Sun Apr 11-12
Notes developed in class on Fri.

The second servlet developed on Fri from 12:20-2:15pm.

Fri Apr 10
Lab today: servlets, a servlet-applet web chat application, servlets vs. JSP.

Review pages 135-152 from the Essentials (chapters 17 and 18).

Highlights of what's relevant for the lab this week:

A JSP that implements the Flag Quiz.

The notes with sample Java web server developed from scratch are here (also listed on the lab assignment page).

Notes to serve as a reference and guide when discussing servlets and JSP: one, two, three.

These are the files needed for the web chat application:

     chat/HttpMessage.class
     chat/ChatApplet.class
     chat/HttpMessage.java
     chat/WEB-INF/lib
     chat/WEB-INF/classes/MessageSource.class
     chat/WEB-INF/classes/MessageSink.class
     chat/WEB-INF/classes/Chat.java

     chat/WEB-INF/classes/ChatServlet.class
     chat/WEB-INF/classes/Chat.class
     chat/WEB-INF/classes/ChatServlet.java
     chat/WEB-INF/classes
     chat/WEB-INF/web.xml
     chat/WEB-INF
     chat/index.html
     chat/ChatApplet.java
     chat
Note that echo $JAVA_HOME and which javac/java should return consistent outputs/values.

A common mistake would be to use jdk1.5 for JAVA_HOME and jdk1.6 for javac/java. (You get bad version number in class then...)

Thu Apr 09
Brief notes from today's class.

Tue Apr 07
Here are some notes from today's class.

Fri Apr 03
Set the environment variables if you use tcsh as follows:

setenv JAVA_HOME   /l/jdk1.5
setenv CATALINA_HOME /u/dgerman/apache-tomcat-5.5.17
setenv CLASSPATH   .:$CATALINA_HOME/common/lib/servlet-api.jar
Make these changes in ~/.cshrc (for tcsh).

Use the notes for other shells.

Thu Apr 02
What we discussed on Tue and some slides for today.

Fri Mar 27
Notes from today's lab. You can start Homework Six now.

Next week we introduce Java and install Tomcat.

Thu Mar 26
Programs discussed in class today:

<html>
  <head><title>Program in Javascript</title></head>
  <body>
    <script language="Javascript"> 
 
      var counter = 0; 

      function up() {
        counter += 1; 
        document.getElementById("joe").innerHTML = counter; 
      } 

      function down() {
        counter -= 1; 
        document.getElementById("joe").innerHTML = counter;
      } 

    </script> 
    <table>

      <tr> <td colspan=2 align=center> <h1><span id=joe>0</span></h1> 

      <tr> <td> <input type=button value=Down onclick=down()> 
           <td> <input type=button value=Up   onclick=up()>
    </table> 
  </body> 
</html>
The program is the second we wrote, uses buttons. The one below is the same from Tue.

<html>
  <head><title>Program in Javascript</title></head>
  <body>
    <script language="Javascript"> 
 
      var counter = 0; 

      function up() {
        counter += 1; 
        document.getElementById("joe").innerHTML = counter; 
      } 

      function down() {
        counter -= 1; 
        document.getElementById("joe").innerHTML = counter;
      } 

    </script> 
    <table>

      <tr> <td colspan=2 align=center> <h1><span id=joe>0</span></h1> 

      <tr> <td> <a href=javascript:down()>Down</a> 
           <td> <a href=javascript:up()>Up</a>
    </table> 
  </body> 
</html>
The only difference is that now we can access and update HTML elements on the page.

Tue Mar 24
Notes to be used in class today.

Program developed in class:

<html>
  <head><title>Tuesday file</title></head>
  <body> 

  <script language="Javascript">
    var counter = 0; 
    function goUp() {
      counter += 1; 
      alert("The counter is now: " + counter);
    }     
    function goDown() {
      counter -= 1; 
      alert("The counter is now: " + counter);
    }     
  </script>     

  <a href="javascript:goDown();">Down</a> 
  <a href="javascript:goUp();">Up</a> 


  </body>
</html> 

Fri Mar 13
Today in lab we will touch on HTTP and continue the development from yesterday.

Thu Mar 12
These are the notes as we develop them in class, right now.

My solution to the midterm:

Fri Mar 06
Notes developed in the 12:20 lab today.

Notes developed in the 10:10 lab this morning.

Mon-Thu Mar 02-05
First program we developed today: here. Second one.

Discussion on how to structure the midterm program: here.

Tuesday we developed these programs: one, two

Fri Feb 27
Notes on how to start working on a project blog.

Notes from the lab today.

Thu Feb 26
Things brought up in class today:

Today in class we discuss the midterm prototype. We also finish implementing Homework Five.

Tue Feb 24
Notes from today's class.

Mon Feb 23
Office hours, individual appointments times for this and next week.

Today we wrap up the homework assignments with Homework No. 5.

Tue Feb 24
Notes from today's class.

Mon Feb 23
Office hours, individual appointments times for this and next week.

This week we discuss: Homework Five, Semester Project, Midterm Exam.

Fri Feb 20
Here are the programs as we developed them in class today: one, two.

Thu Feb 19
The notes, as we are developing them in class.

Wed Feb 18
Our development in class yesterday.

Tue Feb 17
Summary of queries discussed in the Homework Three document.

Fri Feb 13
Today in lab:

Thu Feb 12
Notes developed in today's class.

Wed Feb 11
Office hours today: 9:00-11:00am, 1:00-2:30pm.

Tue Feb 10
Some notes to read before class, notes from today's class.

Fri Feb 6
Notes from the lab today.

Wed Feb 4
Notes from yesterday's class.

Tue Feb 3
Today in class we install MySQL and PHP.

Notes to refer to today:

We will also describe what the this and the next week will be about.

Please don't forget there's a text for this class we keep referring to.

Mon-Fri Jan 26-30
Lecture notes for this week are here.

Lecture on Tue will be taught by Richard Pinapati, he's an excellent instructor.

I am in North Carolina (Chapel Hill, at Emergent) to take part in their Gamebryo course.

Tue-Fri Jan 20-23
Lecture notes from class to be posted here soon.

Mon Jan 19
Martin Luther King Day today. No classes.

Sat-Sun Jan 17-18
Notes for the upcoming week:

Local copies of the Univ. of Virginia tutorial: one, two, three, four, five, six, seven, eight.

Fri Jan 16
Notes to be used in lab today.

Thu Jan 15
Link to the set of notes to be used in class today.

Minute paper has been postponed for tomorrow in lab.

Tue Jan 13
Class starts today in SB221 at 1:00pm.

List of students and ports for this semester.


Updated by Adrian German for A348/A548