Home Ittraining Servlet Training Overview

 
 

Servlet Training Overview
Posted on: March 27, 2008 at 12:00 AM
Advertisement
Our course is specially designed for the engineering graduates, who want to make a career in the Software development field. We even assist the IT ?professionals who want to shift on to the java software developments. Software companies take our services

Servlet Training Overview

   

Duration: 5 days 

Our course is specially designed for the engineering graduates, who want to make a career in the Software development field. We even assist the IT ?professionals who want to shift on to the java software developments. Software companies take our services to train their fresh engineers. 

Servlets Course duration is of the 5 days and during the training period we provide them expert training and hands on exercise to really master the Server-Side Technologies like Servlets. 

This training session aims to teach the beginners to develop database-driven Web applications using Servlets. 

Location: Onsite or at our premises 

Prerequisites to learn Servlets 

  • Knowledge of HTML

  • A prior knowledge of object-oriented or object-based programming,

  • Windows 2000,Xp or above

  • Java SE SDK, version 1.5.0 or later

  • Web Server - Tomcat 5.0 or later

  • Knowledge of SQL and other relational databases.

  • This class is 60% hands-on, 40% lecture

Hands-on / Lecture Ratio:

Course Content day wise:

Day 1:

Understanding Java Serlets 

  • What are Servlets ? Servlets Vs Applets.
    • Comparing Servlets with the CGI scripts
    • How servlets fits in the distributed environments.
  • What is a web application?
    • Role of a web application server. 
    • What does a Webserver do?
  • What are Servlet Containers?
    • How does it Handles the HTTP Requests? 
    • Tomcat web server: Understanding Servlet Containers.
  • Architecture of servlet package
    • Advantages the Servlet API 

Structure and deployment 

  • Directory structure of a web application 
    • Understanding the document root directory 
    • Understanding the WEB-INF directory 
    • The web archive (WAR) file 
    • Difference between jar & war files? 
    • Configuring a web application. 
  • The deployment descriptor: an overview 
    • A simple deployment descriptor 
    • Using the <servlet> element 
    • Using the <servlet-mapping> element 
    • Mapping a URL to a servlet 

Day 2 : 

The Servlet model 

  • Sending requests.
    • Web browsers and HTTP methods.
    • Comparing HTTP methods.
  • Servlet life cycle
    • Loading and instantiating a servlet.
    • Initializing a servlet. 
    • Servicing client requests. 
    • Destroying a servlet . 
    • Unloading a servlet. 
    • Servlet state transition from the servlet container's perspective. 
  • ServletConfig
    • Define Servlet Config
    • ServletConfig methods 
  • ServletContext:
    • Sharing the data (attribute scopes) 
    • Coordinating servlets using RequestDispatcher 
    • Redirect Vs RequestDispatcher. 

The servlet container model 

  • Initializing ServletContext 
  • Listeners
    • Understanding application events and listeners.
    • ServletContextListener 
    • HttpSessionAttributeListener etc 
  • Web applications in a distributed environment. 

Day 3 : 

Session management

  • About Session
    • Understanding state and sessions 
  • About HTTP 
  • Session Tracking methods:
    • Hidden Form Fields:
  • Cookies
    1. About cookie 
    2. Creating Cookie 
    3. Add Cookie to the response 
    4. Get Cookie from the request 
    5. More methods of cookie object 
    6. Understanding the benefits and drawbacks of cookies 
  • URL Rewriting
    • About URL rewriting.
    • Understanding the benefits of URL rewriting. 
  • Session Tracking API:
    1. Obtaining a session object
    2. Setting information to the session
    3. Getting information from session 
    4. Deleting information from session
    5. Invalidating session
Developing thread-safe servlets
  • Understanding the multithreaded servlet model
  • Understanding the single-threaded model
  • Variable scopes and thread safety
  • Attribute scopes and thread safety Context scope 
    • Context scope 
      Session scope 
      Request scope

  • Creating thread safe servlet
    1. Synchronizing block of code
    2. Synchronizing method
    3. Using SingleThreadModel interface
Day 4: 

Servlet Filters 
  • Filter and Servlet
     
    Filter Life Cycle
    Processing filters 
    Programming Filters
     
  • Configuring Filters
     
    Declaring Filter
    Declaring Filters with initialization parameter 
    Declaring Filter mapping to a URL pattern
    Declaring Filter mapping to a servlet name
      
  • Container's rule for ordering filters 
      
    Using filters to do preprocessing
    Using filters to block response 
    Using filters to modify response
    Programming Customized Requests and Responses

Handling server-side exceptions 

  • Handling exceptions programmatically 
  • Handling exceptions declaratively 
  • Using declarative exception handling 
  • Using RequestDispatcher to handle exceptions. 

Day 5 : 

Accessing Databases with JDBC 

  • Overview of JDBC technology
  • JDBC drivers 
  • Basic steps in using JDBC 
  • Retrieving data from a ResultSet 
  • Using prepared and callable statements 
  • Handling SQL exceptions

Note: This outline presumes that Apache Tomcat will be used to execute the servlets. However, all code taught will run on any Java platform, including BEA WebLogic, and IBM WebSphere.


It Training Inquiry Form
Name:*
Your E-Mail:*
Phone:*
Company:*
Country:*
Your Requirement:*

Ask Questions?    Discuss: Servlet Training Overview   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Advertisements Advertisements
 

 

 

DMCA.com