Chabot College Fall 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. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. create and execute elementary “stand alone” applications and applets using the Java compiler and editor; recognize and understand the standard Java classes and their available methods; manipulate and convert Java’s string input to other data types; create various objects (e.g. labels, buttons, text areas, checkboxes, scroll bars) on an applet; create an applet interface to a sequential data file; embed mouse controls and manipulate background graphics and text in an applet; manipulate and access URLs from applets, including reading an image map; coordinate an applet with other basic HTML tag capabilities on a web page; define classes and create instances of these classes in programs; describe inheritance as it relates to Java core classes; subclass existing classes; convert a Java application to an applet; 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 Course Outline for Computer Science 31 Fall 2001 Page 2 Course Content: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Review of Java grammar and syntax Review of static HTML tags and web pages Introduction to networking basic concepts Overview of the Java Servlet Developer Kit (JSDK) and API Comparison of Servlets and Common Gateway Interface HTTP Get and Post Requests Session tracking with HTTP Sessions Java Database Connectivity (JDBC) Java Remote Method Invocation (RMI) overview Form Processing Cookies concepts and maintaining client data 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: a. Elementary servlet echoing your name and some pertinent user entered facts to the user via a Java generated html web page b. Storing user information on a Microsoft Access data base c. Creating a site “guest” book via Java Servlets d. Creating cookies on the user’s hard drive and returning different Java generated pages in response to that cookie 2. Methods of Evaluating Student Progress a. Written quizzes b. Designated assignments c. 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