|
|
Parkland College
2400 West Bradley Avenue, Champaign, Illinois 61821 |
|
|
Csc
140, Programming in Java with Object Oriented Design |
| Spring 2005 |
| Class Notes: |
All grades have been posted. Have a good
summer! 1. Add extends HttpServlet to your code. You can check your code against my code that I generated in class and have since then corrected. 2. Recompile your code. Make sure that servlets.jar is in your class path. You must specifically include the file servlets.jar not just the directory that it is in in your class path. 3. FTP your .class file up to java.csit.parkland.edu. Make sure you put it in the /WEB-INF/classes directory with all the other servlet .class files. 4. Make sure you have very carefully registered your servlet in the web.xml file in the /WEB-INF directory. The full path to this directory on the server is C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\servlets-examples\WEB-INF Carefully copy the two sections of code for my ScottsServlet and replace ScottsServlet with the name of your servlet. Make sure you don't change any other code in your two sections. Carefully compare your new code with the existing code before you save it. You only have to do this step once. As long as your servlet keeps the same name, your registration will be refreshed each time you Reload servlets-examples in step 5. below. 5. Go to http://java.csit.parkland.edu:8080 which is the Tomcat Program and log into the Tomcat Manager under Administration. In the Tomcat Web Application Manager page, click on Reload for servlets-examples This restarts your servlet with your new .class file. Otherwise it is still using the old code. 6. Test your servlet by going to http://java.csit.parkland.edu:8080/servlets-examples/servlet/YourServletName You should see the results of your servlet in your browser. Look at the address carefully! /servlets-examples are both plural but /servlet is not. Also, the beginning http:// is necessary and the servlet will not work without it. |
||||||||||||||
| Syllabus: | Syllabus | ||||||||||||||
| Help! |
Is Scott in his office? Coordinated Office Hours and Help |
||||||||||||||
| Lab Times: | CSIT Department Open Lab Times | ||||||||||||||
| Free software: |
Java Burn
Spring 2005 (the CD given to you in class) CSIT - Microsoft Academic Alliance |
||||||||||||||
| Total Points: 60 |
|
||||||||||||||
| Grade Scale |
|
||||||||||||||
| Projects: | |||||||||||||||
| Thurs., Feb. 3 | Project 1 due, graded using the Project 1 Grading Report | ||||||||||||||
| Thurs., Feb. 24 | Project 2 due, graded using the Project 2 Grading Report | ||||||||||||||
| Thurs., Mar. 31 | Project 3 due, graded using the Project 3 Grading Report | ||||||||||||||
| Tue., May 3 | Project 4 due, graded using the Project 4 Grading Report | ||||||||||||||
| Interesting Applet | Distance Between Cities | ||||||||||||||
| Tests: | |||||||||||||||
|
Tuesday., May 10 6:00 pm to 8:00 pm |
Final - Final Exam Study Guide | ||||||||||||||
| Daily Topics: | The following schedule is tentative and may be modified as the semester progresses. | ||||||||||||||
| Tue., Jan. 11 |
Java Programming
Environment hello.java (code done in class) |
||||||||||||||
| Thurs., Jan. 13 |
Components
and Documentation (start) hello.java (code done in class) |
||||||||||||||
| Tue., Jan. 18 |
Components
and Documentation (completion) MetricConverter.java (code done in class) Discussion of Project 1 |
||||||||||||||
| Thurs., Jan 20 |
Events and Event Handlers MetricConverter.java (code done in class, including Listeners) |
||||||||||||||
| Tue., Jan. 25 |
Classes, Objects,
Inheritance and Interfaces Drawings.java DrawingPanel.java (code done in class) |
||||||||||||||
| Thurs., Jan. 27 |
Animation Drawings.java DrawingPanel.java (code done in class) |
||||||||||||||
| Tue., Feb. 1 | Threads | ||||||||||||||
| Thurs., Feb. 3 | Project 1 due, graded using the Project 1 Grading Report | ||||||||||||||
| Tue., Feb. 8 |
Exceptions and Input/Output
Streams Exceptions.java (code done in class) |
||||||||||||||
| Thurs., Feb. 10 |
File I/O IOPractice.java (code done in class) Client for Client/Server Client.java (code done in class) |
||||||||||||||
| Tue., Feb. 15 |
Server for Client/Server Server.java Handler.java (code done in class) Arrays JavaArrays.java (code done in class) |
||||||||||||||
| Thurs., Feb. 17 |
Relationships Design_StopLight.txt (copy of code written on the board in class) |
||||||||||||||
| Tue., Feb. 22 | In-class group design exercise - Elevator | ||||||||||||||
| Thurs., Feb. 24 | In-class group design exercise - Vending Machine | ||||||||||||||
| Tue., Mar. 1 | Project 2 due, graded using the Project 2 Grading Report | ||||||||||||||
| Thurs., Mar. 3 |
Yes we do have class on
Thursday, March 3rd. Professional development day does not include
night classes. I'll be there with the assignment for Project 3,
and we will do some code that will be helpful for that project. Model - View - Controller paradigm for Object Oriented Programming (start) Discussion of Project 3 |
||||||||||||||
| Tue., Mar.8 | Model - View - Controller paradigm for Object Oriented Programming (continuation) | ||||||||||||||
| Thurs., Mar. 10 |
Model - View - Controller
paradigm for Object Oriented Programming (completion) Project3.java QueueSimulator.java UserView.java Controller.java ServiceDesk.java (finished code done in class) |
||||||||||||||
| Tue., Mar. 15 | Discussion of design of QueueSimulator model for Project 3 | ||||||||||||||
| Thurs., Mar. 17 |
ODBC - Open Data Base Connection JDBCPractice.java (code done in class) |
||||||||||||||
| Sat., Mar. 19 to Sun., Mar. 27 | Spring Recess and Spring Holiday | ||||||||||||||
| Tue., Mar. 29 |
Servlets ScottsServlet.java (code done in class) The servlets are working! See the Class Notes above. |
||||||||||||||
| Thurs., Mar. 31 | Project 3 due, graded using the Project 3 Grading Report | ||||||||||||||
| Tue., Apr. 5 |
Servlets with call from html web
page. ScottsServlet.java ScottsServletCaller.html (code done in class) |
||||||||||||||
| Thurs., Apr. 7 |
Servlets with parameters ScottsServlet.java (with parameter) ScottsServletCaller.html (code in class) Servlets with HtmlSession objects ScottsServlet.java (with session) ScottsServletCaller.html ScottsSessionVerifier.html (code done in class) |
||||||||||||||
| Tue., Apr. 12 |
Discussion of Project 4,
graded using the Project 4 Grading
Report Servlets with Cookies ScottsServlet.java (with cookies) ScottsServletCaller.html ScottsCookieVerifier.html (code done in class) |
||||||||||||||
| Thurs., Apr. 14 | Scott at Illinois Articulation Meeting | ||||||||||||||
| Tue., Apr. 19 |
URL Addresses and Net Connections NetworkConnections.java (code done in class) |
||||||||||||||
| Thurs., Apr. 21 |
Java Server Pages (jsp) ScottsJavaServerPage.jsp (1st) ScottsJavaServerPage.jsp (2nd) (code done in class) Applets ScottsApplet.html ScottsApplet.java (code done in class) |
||||||||||||||
| Tue., Apr. 26 | Open Lab -- help on Project 3 or Project 4, also help with Access Databases if you need it. | ||||||||||||||
| Thurs., Apr. 28 | Open Lab -- help on Project 3 or Project 4 | ||||||||||||||
| Tue., May 3 | Project 4 due, graded using the Project 4 Grading Report | ||||||||||||||
| Thurs., May 5 | Review for Final using the Final Exam Study Guide. | ||||||||||||||
|
Tuesday., May 10 6:00 pm to 8:00 pm |
Final - Final Exam Study Guide |
| Scott Badman Office: B132 Phone: 353-2250 sbadman@parkland.edu |
Parkland College, 2400 W. Bradley Avenue, Champaign, IL 61821 |