Chabot CollegeFall 2001

Removed Fall 2006

Course Outline for Computer Science 31

JAVA SERVLETS

Course Description:

31 - Java Servlets 2 units

Introduction to basic Java Servlet capabilities as an alternative to Common Gateway Interface (CGI) to create interactive web pages including secure access to the web site, database interactivity, generate dynamic web pages and maintain client session data (i.e. cookies). Prerequisite: Computer Science 19 and 91 (completed with a grade of C or higher). 2 hours lecture, 1 hour laboratory.

Prerequisite Skills:

Upon entry to the class the student should be able to:

  1. create and execute elementary “stand alone” applications and applets using the Java compiler and editor;
  2. recognize and understand the standard Java classes and their available methods;
  3. manipulate and convert Java’s string input to other data types;
  4. create various objects (e.g. labels, buttons, text areas, checkboxes, scroll bars) on an applet;
  5. create an applet interface to a sequential data file;
  6. embed mouse controls and manipulate background graphics and text in an applet;
  7. manipulate and access URLs from applets, including reading an image map;
  8. coordinate an applet with other basic HTML tag capabilities on a web page;
  9. define classes and create instances of these classes in programs;
  10. describe inheritance as it relates to Java core classes;
  11. subclass existing classes;
  12. convert a Java application to an applet;
  13. demonstrate an understanding of security issues under Java.

Expected Outcomes for Students:

Upon completion of the course the student should be able to:

  1. explain and apply the fundamental concepts of Java Servlets vs. Common Gateway Interface (CGI);
  2. present the elements and features of the Java Servlet environment (security, data I/O);
  3. explain and use the design process for a servlet;
  4. define and use decision and repetition structures in a servlet;
  5. define and use functions, recursion and storage classes in Java;
  6. use operators and functions of Java within a servlet;
  7. define and use dynamic Java data structures;
  8. define and explain trends in Java programming standards;
  9. write, compile, test and debug servlet programs;
  10. present the characteristics of object-oriented programming under Servlets;
  11. define and use Java data types and variables;
  12. define and use arrays within servlets;
  13. define and use user HTML interfaces;
  14. define and use file I/O under Java Servlets;
  15. develop and use event-driven Servlet programs;
  16. install and basically maintain the latest version of Sun Java Servlet Developer’s Kit (JSDK).

Chabot College Page 2

Course Outline for Computer Science 31

Fall 2001

Course Content:

  1. Review of Java grammar and syntax
  2. Review of static HTML tags and web pages
  3. Introduction to networking basic concepts
  4. Overview of the Java Servlet Developer Kit (JSDK) and API
  5. Comparison of Servlets and Common Gateway Interface
  6. HTTP Get and Post Requests
  7. Session tracking with HTTP Sessions
  8. Java Database Connectivity (JDBC)
  9. Java Remote Method Invocation (RMI) overview
  10. Form Processing
  11. Cookies concepts and maintaining client data
  12. Basic setting up and administering Servlets on a server

Methods of Presentation:

1. Lecture

2. Demonstrations using computers on overhead projectors

Assignments and Methods of Evaluating Student Progress:

  1. Typical Assignments:
  2. Elementary servlet echoing your name and some pertinent user entered facts to the user via a Java generated html web page
  3. Storing user information on a Microsoft Access data base
  4. Creating a site “guest” book via Java Servlets
  5. Creating cookies on the user’s hard drive and returning different Java generated pages in response to that cookie
  6. Methods of Evaluating Student Progress

a. Written quizzes

  1. Designated assignments
  2. Comprehensive written final; a final variation could be a comprehensive “capstone” project.

Textbook(s) (Typical):

Java How to Program, 3rd Edition, Deitel and Deitel, Prentice Hall, 1999

Thinking n Java, Bruce Eckel,Prentice Hall, 2000

Java 2 and Javascript for C and C++ Programmers, Michael Daconta, Al Saganich and Eric Monk,

John Wiley & Sons, Inc., 1999

Special Student Materials:

None

Des Chun

Sept. 2000

2000Curriculum/CSCI/31.rev2

effective Fall 2001