Java Server Pages


Server and Java Server Pages Overview

  • Explain Java[tm] 2 Enterprise Edition (J2EE)
  • Understand definition of Servelet & Java Server Pages (JSP[tm])
  • Compare & contrast servelet & JSP.
  • Discuss benefits of servlets & JSP.

Introduction to Servlets

  • Understand the basic structure of servlets.
  • Show first servlets.
  • Explain the servlet life cycle.
  • Show how to compile¬†¬† excute a servlet.

Creating, Deploying and Executing Servlet/JSP with Tomcat


Servlets Request

‚Äʬ†Demonstrate how to get different input information:

  • From the data
  • About the client
  • From the request headers.
  • About the server.
  • From itself

Servlet Response

  • Describe the structure of an HTTP response.
  • Show how to send status codes, response headers & response body.
  • Explain the methods to generate response.

Servlet Session Tracking

‚Äʬ†¬†¬†How to do session tracking:

  • Demonstrate why session tracking is important.
  • Discuss & show some traditional session tracking techniques.
  • -Illustrate servlet session APIs.
  • How to implements session tracking.


Introduction to Java Server Pages


  • JSP[TM] architecture.
  • How to JSP works?

‚Äʬ†¬†¬†How to develop a JSP?

  • Fundamental Syntax
  • Set up environment

‚ÄĘ ¬†Show how to handle jsp exception

Using JSP Scripting/Page Directive

‚Äʬ†¬†Discuss all the scripting elements:

  • Declaration, scriplets, & expressions.

‚Äʬ†¬†Show common directives.

‚Äʬ† Examine the implicit objects:

  • Discuss different scope in JSP[tm].

Developing JavaBeans Component

‚Äʬ†¬†¬†Show JSP[tm] standard tag actions.

‚Äʬ† ¬†Demonstrate

  • How to use JSP and JavaBeans[tm] component.
  • How to develop JavaBeans component.
  • How to share data between jsp pages & servlets.
  • The difference between include directive & include action.

Custom JSP Tag Libraries

‚Äʬ†¬†Demonstrate how to develop custom tag libraries:

  • A simple tag.
  • A body tag.
  • A tag with scripting variable.
  • Show how to use tag libraries in JSP.

Access Database

‚Äʬ†¬†Be able to efficiently insert data into a SQL database.

  • Use JDBC prepared statements.
  • Use JDBC transaction.

‚Äʬ†¬†Display query result by using JSP, JavaBeans, & servlets.

Architecting JSP/Servlet Application

‚Äʬ†¬†Examine several architectural developing web application:¬† ¬† ¬† ¬† ¬†

  • Building application with JSP[TM]alone.
  • Combing servlets and jsp pages.
  • Understanding architectural tradeoffs.
  • Security