![]() |
![]() Spring Semester 2009 |
Thu Sep 03
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 28Notes from class today.
Thu Apr 23Things 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
Thu Apr 16
Tue Apr 14
Sat-Sun Apr 11-12The second servlet developed on Fri from 12:20-2:15pm.
Fri Apr 10Review pages 135-152 from the Essentials (chapters 17 and 18).
Highlights of what's relevant for the lab this week:
classes folder
web.xml for the servlet
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
Tue Apr 07
Fri Apr 03tcsh as follows:
Make these changes insetenv JAVA_HOME /l/jdk1.5 setenv CATALINA_HOME /u/dgerman/apache-tomcat-5.5.17 setenv CLASSPATH .:$CATALINA_HOME/common/lib/servlet-api.jar
~/.cshrc (for tcsh). Use the notes for other shells.
Thu Apr 02
Fri Mar 27Next week we introduce Java and install Tomcat.
Thu Mar 26
<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 24Program 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
Thu Mar 12My solution to the midterm:
Fri Mar 06Notes developed in the 10:10 lab this morning.
Mon-Thu Mar 02-05Discussion on how to structure the midterm program: here.
Tuesday we developed these programs: one, two
Fri Feb 27Notes from the lab today.
Thu Feb 26
get_session_id() in Homework Five)
Today in class we discuss the midterm prototype. We also finish implementing Homework Five.
Tue Feb 24
Mon Feb 23Today we wrap up the homework assignments with Homework No. 5.
Tue Feb 24
Mon Feb 23This week we discuss: Homework Five, Semester Project, Midterm Exam.
Fri Feb 20
Thu Feb 19
Wed Feb 18
Tue Feb 17
Fri Feb 13
Thu Feb 12
Wed Feb 11
Tue Feb 10
Fri Feb 6
Wed Feb 4
Tue Feb 3Notes 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-30Lecture 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
Mon Jan 19
Sat-Sun Jan 17-18Local copies of the Univ. of Virginia tutorial: one, two, three, four, five, six, seven, eight.
Fri Jan 16
Thu Jan 15Minute paper has been postponed for tomorrow in lab.
Tue Jan 13List of students and ports for this semester.