Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Training
Web-based Courses
»   How To Enroll
»   Java Technology
»   Sun Java Studio, Solaris OS, and Perl Development
»   Sun Java Enterprise System
»   Sun Java Desktop System
»   Web Services, XML, and Web Publishing
»   Wireless and Telecommunications
»   StarOffice Software
»   Solaris Operating Environment
»   Network Management
»   N1 Grid
»   Security
»   Server and High Availability
»   Storage
»   Knowledge Management
»   Auto-ID
 
 

Using Java Servlet Technology in Web Applications

 Course Description
    Course Outline/Details

The Using Java Servlet Technology in Web Applications course provides a deeper understanding of developing Web applications using Java technology servlets. The modules in this course describe specific Web application features, such as: session management, security, error handling, and con currency control. These features will make Web applications robust and flexible. In this course, students should learn:

  • How to design and develop a Web application using a variation on the Model-View-Controller (MVC) design pattern
  • How to design and develop a Web application using session management
  • How to design and develop a Web application to handle server-side exceptions
  • How to design and deploy a secure Web application
  • How to recognize con currency issues within your Web application and how to use proper synchronization techniques to create thread-safe Web applications
  • NOTE: The optional exercises in this course require a separate download and installation of the Apache Tomcat server and Java virtual machine.

  • Course length: 4-5 hours

  • This course requires the Macromedia Flash 4 (or higher) player. Click here to test if you have Flash.

    Course ID:
    WJ-3142-90
    Subscription Duration:
    90 days
    Price:
    $US  125.00
    How to Enroll
       
     Languages Offered Back To Top

    This course is currently available in English only.

     
     Who Can Benefit Back To Top

    Students who can benefit from this course are Web component developers.

     
     Prerequisites Back To Top

    To succeed fully in this course, students should be able to:

  • Create and use Java technology classes, packages, interfaces, exceptions, and collections
  • Compile and execute a Java technology program
  • Read and use an object-oriented API
  • Integrate with existing Java technology code (for example, when code developed by another team is needed)
  • Model the "what" and "how" of a software system using some modeling language, such as Unified Modelling Language (UML)
  • Understand the component/container software framework
  • Understand what an n-tiered architecture consists of (presentation logic, business logic, data store)
  • Understand why separation of presentation logic and business logic is a good idea
  •  
     Skills Gained Back To Top

    Upon completion of this course, you should be able to:
  • Understand how to design and develop robust Web applications using servlet technology
  • Understand the importance of applying the MVC pattern's main goal of "separation of concerns" to Web application design
  • Design a Web application that encapsulates the Model elements of the application into separate Java technology classes and to partition the Controller and View elements into separate servlet methods
  • Design and develop a servlet that uses the HttpSession interface to record user data across multiple HTTP requests
  • Design and develop a servlet that manages error handling using either declarative or programmatic techniques for catching exceptions
  • Design and deploy a Web application that uses the authentication and authorization techniques provided by the Web container
  • Recognize thread-safety issues in Web applications and identify which Web application attribute scopes are thread-safe
  • Develop synchronization blocks that properly manage concurrency control when dealing with Web application attributes
  •  
     Related Courses Back To Top

  • Before: WJB-250: The Java Programming Language Bundle
  •  
         Course Content Back To Top



    Module 1: Developing Web Applications Using the MVC Pattern

  • List the limitations of simple Web applications
  • Develop a Web application using a variation on the Model-View-Controller (MVC) design


  • Module 2: Developing Web Applications Using Session Management
  • Describe the purpose of session management
  • Design a Web application that uses session management
  • Develop servlets using session management
  • Describe the cookies implementation of session management
  • Describe the URL-rewriting implementation of session management


  • Module 3: Handling Errors in Web Applications
  • Describe the types of errors that can occur in a Web application
  • Declare an HTTP error page using the Web application's deployment descriptor
  • Declare a Java technology exception error page in the Web application deployment descriptor
  • Create an error handling servlet
  • Write code to capture a Java technology exception and forward it to an error handler servlet


  • Module 4: Configuring Web Application Security
  • Explain the importance of Web security
  • Use the deployment descriptor to configure authorization for a Web application resource
  • Use the deployment descriptor to configure authentication of users of a Web application


  • Module 5: Understanding Web Application Concurrency Issues
  • Describe why servlets need to be thread-safe
  • Describe the attribute scope rules and the corresponding concurrency issues
  • Describe the single thread model for servlets and the issues with the con currency strategy
  • Design a Web application for con currency
  •