Compuways IT Training, IT Training in South Africa : JAVA, J2EE, VB, C#, .NET, SQL, MICROSOFT, UNIX, ERP, LINUX, STRUTS
Training Home
C#.NET 2008
VB.NET 2008
ASP.NET 3.5
 
DB Design
SQL Intro
SQL Reporting (BI)
 
Programming Intro with Java
Java - SCJP
Java - SCJD
Java - SCWCD
Java - SCBCD
 
UML Intro
UML Advanced

Java / J2EE Web Component Developer for SUN Certification (SCWCD)

Who should attend:

 

This course covers the latest (J2EE 1.4) Servlets and JSP's required to use on a practical Java project and also to pass the SUN exam. Learn how to write servlets and JSP's, what makes the Container tick and what not, how to use the JSP Expression language, what you should not write in a JSP. How to write deployment descriptors, secure applications and even some server-side design patterns. We not only try to help you to pass the exam, but teach it in a way you can use it in the real world.

Pass the Sun Certified Web Component Developer Exam and also be able to use Servlets and JSP's in the way it was intended for your projects at work.

  • The Servlet Model

    • For each of the HTTP methods, GET, POST, and PUT, identify the corresponding method in the HttpServlet class.
    • For each of the HTTP methods, GET, POST, and HEAD, identify triggers that might cause a browser to use the method, and identify benefits or functionality of the method.
    • For each of the following operations, identify the interface and method name that should be used.
    • Identify the interface and method to access values and resources and to set object attributes within the following three Web scopes
    • Given a life-cycle method: init, service, or destroy, identify correct statements about its purpose or about how and when it is invoked.
    • Use a RequestDispatcher to include or forward to a Web resource.

    The Structure and Deployment of Modern Servlet Web Applications

    • Identify the structure of a Web Application and Web Archive file, the name of the WebApp deployment descriptor, and the name of the directories where you place the following
    • Match the name with a description of purpose or functionality, for each of the following deployment descriptor elements

    The Servlet Container Model

    • Identify the uses for and the interfaces (or classes) and methods to achieve the following features
    • Identify the WebApp deployment descriptor element name that declares the following features
    • Distinguish the behavior of the following in a distributable

    Designing and Developing Servlets to Handle Server-side Exceptions

    • For each of the following cases, identify correctly constructed code for handling business logic exceptions, and match that code with correct statements about the code's behavior: Return an HTTP error using the sendError response method; Return an HTTP error using the setStatus method.
    • Given a set of business logic exceptions, identify the following: The configuration that the deployment descriptor uses to handle each exception; How to use a RequestDispatcher to forward the request to an error page; Specify the handling declaratively in the deployment descriptor.
    • Identify the method used for the following: Write a message to the WebApp log; Write a message and an exception to the WebApp log.

    Designing and Developing Servlets Using Session Management

    • Identify the interface and method for each of the following
    • Given a scenario, state whether a session object will be invalidated.
    • Given that URL-rewriting must be used for session management, identify the design requirement on session-related HTML pages.

    Designing and Developing Secure Web Applications

    • Identify correct descriptions or statements about the security issues
    • Identify the deployment descriptor element names, and their structure, that declare the following
    • Given an authentication type: BASIC, DIGEST, FORM, and CLIENT-CERT, identify the correct definition of its mechanism.

    Designing and Developing Thread-safe Servlets

    • Identify which attribute scopes are thread-safe
    • Identify correct statements about differences between the multi-threaded and single-threaded servlet models. 7.3 Identify the interface used to declare that a servlet must use the single thread model.

    The JavaServer Pages Technology Model

    • Write the opening and closing tags for the following JSP tag types
    • Given a type of JSP tag, identify correct statements about its purpose or use.
    • Given a JSP tag type, identify the equivalent XML-based tags.
    • Identify the page directive attribute, and its values, that
    • Identify and put in sequence the following elements of the JSP page lifecycle
    • Match correct descriptions about purpose, function, or use with any of the following implicit objects:
    • Distinguish correct and incorrect scriptlet code for

    Designing and Developing Reusable Web Components

    • Given a description of required functionality, identify the JSP page directive or standard tag in the correct format with the correct attributes required to specify the inclusion of a Web component into the JSP page.

    Designing and Developing JSP Pages Using JavaBeans Components

    • For any of the following tag functions, match the correctly constructed tag, with attributes and values as appropriate, with the corresponding description of the tag's functionality
    • Given JSP page attribute scopes: request, session, application, identify the equivalent servlet code.
    • Identify techniques that access a declared JavaBean component.

    Designing and developing JSP Pages Using Custom Tags

    • Identify properly formatted tag library declarations in the Web application deployment descriptor.
    • Identify properly formatted taglib directives in a JSP page.
    • Given a custom tag library, identify properly formatted custom tag usage in a JSP page. Uses include:

    Designing and Developing a Custom Tag Library

    • Identify the tag library descriptor element names that declare the following:
    • Given a custom tag, identify the necessary value for the bodycontent TLD element for any of the following tag types:
    • Given a tag event method (doStartTag, doAfterBody, and doEndTag), identify the correct description of the methods trigger.
    • Identify valid return values for the following methods:
    • Given a "BODY" or "PAGE" constant, identify a correct description of the constant's use in the following methods: 12.7 Identify the method in the custom tag handler that accesses:
    • Identify methods that return an outer tag handler from within an inner tag handler.
    • Given a scenario description with a list of issues, select the design pattern (Value Objects, MVC, Data Access Object, or Business Delegate) that would best solve those issues.
    • Match design patterns with statements describing potential benefits that accrue from the use of the pattern, for any of the following patterns.

     

    Module 1 Servlet Methods and Life Cycle

    • JSP and Servlet Overview
    • Handling HTTP Get, Post and Put Requests
    • Servlet Objects and Scope
    • Servlet Life Cycle
    • Using a Request Dispatcher
    • Event Listeners
    • Exercises

    Module 2 Deploying Web Applications

    • Web Application Overview
    • Deployment Descriptor
    • Exercises

    Module 3 Servlet Container

    • Context Architecture
    • Context Initialisation Parameters
    • Using Listeners
    • Context and Attributes within a Distributable
    • Exercises

    Module 4 - Servlet Exceptions

    • Handling Server-Side Exceptions
    • Return an HTTP Error Using sendError
    • Return an HTTP Error Using sendStatus
    • Exception Handling in the Deployment Descriptor
    • Write a Message to the Web App Log
    • Using a RequestDispatcher to Forward to an Error Page
    • Exercises

    Module 5 - Session Management

    • Session Management Overview
    • Session Methods
    • Event Listeners
    • Invalidating Sessions
    • Session tracking through a URL Rather than a cookie
    • Exercises

    Module 6 - Web Application Security

    • Web Application Security Overview
    • Deployment Descriptor Security Elements
    • Security Concepts
    • Authentication Types
    • Exercises

    Module 7 Thread Safe Servlets

    • Servlet Threads
    • Object Scope Affects Thread Safety
    • Exercises

    Module 8 Java Server Pages (JSP)

    • JavaServer Pages Introduction
    • JSP Life Cycle
    • JSP Syntax
    • Directive
    • Expression
    • JSP Scriptlets
    • JSP Implicit Objects
    • Declaration
    • Using XML to Create JSP Actions
    • Exercises

    Module 9 JSP & JavaBeans

    • JSP and Servlet Overview
    • JavaBean Overview
    • jsp:useBean
    • jsp:setProperty Action
    • jsp:getProperty Action
    • jsp:include Action
    • jsp:forward Action
    • Scope of JavaBeans in JSP
    • Accessing JavaBeans in Scriptlets
    • Exercises

    Module 10 Customising Tag Libraries

    • Custom Tag Library Overview
    • taglib Directive
    • Custom Tag
    • tag Handler
    • Custom tag Body
    • tag Library Descriptor
    • Accessing JSP Objects from the Custom Tag Handler
    • Returning a Tag Handler from a Method
    • Exercises

    Module 11 Connection Vs Connection Pool

    • What is JDBC API
    • JDBC Driver Types
    • understanding Connections,Statements & Result Set
    • Exercises of JDBC
    • What is connection Pool
    • What is difference between connection Pool & simple Connection.
    • Advantages of Connection Pool
    • Exercises

    Module 12 JSTL

    • Overview JSP standard Tag Library
    • Instructions for installing & setting JSTL
    • Introduction to JSTL expression language
    • JSTL core & general purpose tags
    • Exercises

    Module 13 Design Patterns

    • Why to use Design Patterns
    • MVC Patterns
    • DAO Patterns
    • Front Controller
    • Fast Lane Reader
    • Business delegate
    • Value Object