Sun Certified Web Component Developer for J2EE Platform
Http://suned.sun.com/us/catalog/courses/cx-310-080.html
Exam Type: Multiple Choice, Short Answer, And Drag and Drop
Number of qustions: 59
Pass Score: 61% (36 of 59 Questions)
Time Limit: 90 minutes
Exam Objectives
Section 1: The Servlet Model
-------------------------------------------------- ------------------------------
1.1 for Each of The Http Methods, Get, Post, And Put, Identify The Corresponding Method In The Httpservlet Class.
1.2 for Each of The Http Methods, Get, Post, And Head, Identify Triggers That Might Causeser To Usefits or FunctionAlicity of the Method.
1.3 for Each of the Following Operations, Identify The Interface and Method Name That Should Be Used:
* Retrieve HTML Form Parameters from the request
* Retrieve a servlet Initialization Parameter
* Retrieve Http Request Header Information
* SET AN HTTP RESPONSE Header; Set The Content Type of The Response
* Acquire a text stream for the response
* Acquire a binary stream for the response
* Redirect an HTTP Request to Another URL
1.4 Identify The interface and method to access values and resources and to set object attributes with to set object attributes:
* Request
* Session
* Context
1.5 Given a life-cycle method: init, service, or destroy, Identify Correct Statements About ITS Purpose or About How and when it is invoked.
1.6 Use a requestDispatcher to include or forward to a web resource.
Section 2: The structure and deployment of modern servlet web coplications
-------------------------------------------------- ------------------------------
2.1 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: * The WebApp deployment descriptor
* The WebApp Class Files
* Any Auxiliary Jar Files
2.2 Match the name with a description of purpose or functionality, for Each of the Following Deployment Descriptor Elements:
* Servlet Instance
* Servlet Name
* Servlet Class
* Initialization Parameters
* Url to named servlet mapping
Section 3: The Servlet Container Model
-------------------------------------------------- ------------------------------
3.1 Identify The Uses for and the interfaces (or classes) and methods to achieve the Following Features:
* Servlet Context Init. Parameters
* Servlet Context Listener
* Servlet CONTEXT Attribute Listener
* Session Attribute Listener
3.2 Identify The WebApp Deployment Descriptor Element Name That Declares The Following Features:
* Servlet Context Init. Parameters
* Servlet Context Listener
* Servlet CONTEXT Attribute Listener
* Session Attribute Listener
3.3 Distinguish The Behavior of the Following In a Distributable:
* Servlet Context Init. Parameters
* Servlet Context Listener
* Servlet CONTEXT Attribute Listener
* Session Attribute Listener
Section 4: Designing and Developing Servlets to Handle Server-Side Exceptions
-------------------------------------------------- ------------------------------
4.1 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.4.2 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.
4.3 Identify The Method Used for the Following: Write a Message to The WebApp Log; Write a Message and an Exception To The WebApp Log.
Section 5: Designing and Developing Servlets Using Session Management
-------------------------------------------------- ------------------------------
5.1 Identify The Interface and Method for Each of The Following:
* Retrieve A session Object Across Multiple Requests to the Same or Different Servlets within the Same WebApp
* Store Objects INTO A Session Object
* Retrieve Objects from a session object
* Respond to the Event WHEN a Particular Object Is Added to a session
* Respond to the Event WHEN A session is created and destroyed
* EXPUNGE A SESSION OBJECT
5.2 Given A Scenario, State WHether A Session Object Will Be Invalidated.
5.3 Given That Url-Rewriting Must Be Used for Session Management, Identify The Design Requirement On Session-Related Html Pages.
Section 6: Designing and Developing Secure Web Applications
-------------------------------------------------- ------------------------------
6.1 Identify Correct Descriptions or Statements About The Security Issues:
* Authentication, Authorization
* Data Integrity * Auditing
* Malicious Code
* Web Site Attacks
6.2 Identify The Deployment Descriptor Element Names, And Their Structure, That Declare The Following:
* A security continction
* A Web Resource
* The login configuration
* A security role
6.3 Given An Authentication Type: Basic, Digest, Form, And Client-Cert, Identify The Correct Definition of Its Mechanism.
Section 7: Designing and Developing Thread-Safe Servlets
-------------------------------------------------- ------------------------------
7.1 Identify Which Attribute Scopes Are Thread-Safe:
* Local Variables
* Instance Variables
* Class Variables
* Request Attributes
* Session Attributes
* Context Attributes
7.2 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.
Section 8: The JavaServer Pages Technology Model
-------------------------------------------------- ------------------------------
8.1 Write The Opening and Closing Tags for the Following JSP Tag Types:
* DIRECTIVE
* Declaration
* Scriptlet
* Expression
8.2 Given a Type of JSP TAG, Identify Correct Statements About ITS Purpose or Use.
8.3 Given a JSP Tag Type, Identify The Equivalent XML-Based Tags.
8.4 Identify The Page Directive Attribute, And ITS Values, That:
* Import a java class inteo the jsp page
* Declare That a JSP Page EXISTS WITHIN A SESSION
* Declare That A JSP Page Uses An Error Page
* Declare That a JSP Page IS An Error Page
8.5 Identify and Put in Sequence The Following Elements of The JSP Page Lifecycle:
* Page Translation
* JSP Page CompiLation
* Load Class
* CREATE INSTANCE
* Call Jspinit
* Call _JspService * Call Jspdestroy
8.6 Match Correct Descriptions About Purpose, Function, or Use with any of the folload omplicit Objects:
* Request
* Response
* OUT
* session
* config
* Application
* Page
* PageContext
* EXCEPTION
8.7 DISTINGUISH CORRECT AND INCORRECT Scriptlet Code for:
* A Conditional Statement;
* An Iteration Statement
Section 9: Designing and Developing Reusable Web Components
-------------------------------------------------- ------------------------------
9.1 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.
Section 10: Designing and Developing JSP Pages Using JavaBeans Components
-------------------------------------------------- ------------------------------
10.1 for any of the flollowing tag functions, match the correctly constructed tag, with attributes and values as copropriate
* Declare the use of a javabeans component within the page.
* Specify, for JSP: UseBean or JSP: GetProperty Tags, The Name of An Attribute.
* Specify, for a JSP: Usebean Tag, The Class of The Attribute.
* Specify, for a JSP: Usebean tag, The scope of the attribute.
* Access or Mutate a property from a declared javabean.
* Specify, for a JSP: GetProperty Tag, The Property of The Attribute.
* Specify, for a JSP: SetProperty Tag, The Property of the attribute to mutate, and the new value.
10.2 Given JSP Page Attribute Scopes: Request, Session, Application, Identify The Equivalent Servlet Code.
10.3 Identify Techniques That Access A Declared JavaBean Component.
Section 11: Designing and Developing JSP Pages Using Custom Tags
-------------------------------------------------- ------------------------------
11.1 Identify Properly formatted Tag Library Declarations in the Web Application Deployment Descriptor.
11.2 Identify Properly Formatted Taglib Directives In A JSP Page.
11.3 Given a Custom Tag Library, Identify Properly Formatted Custom Tag Usage In A JSP Page. Uses include:
* An Empty Custom Tag
* A Custom Tag with Attributes
* A Custom Tag That Surrounds Other JSP Code
* NESTED CUSTOM TAGS
Section 12: Designing and Developing a Custom Tag Library
-------------------------------------------------- ------------------------------
12.1 Identify The Tag Library Descriptor Element Names That Declare The Following:
* The name of the tag
* The class of the tag handler
* The Type of Content That The Tag Accepts
* Any attributes of the tag
12.2 Identify The Tag Library Descriptor Element Names That Declare The FOLLOWING:
* The name of a tag attribute
* WHETHER A Tag Attribute Is Required
* WHETHER or NOT The Attribute's Value Can Be Dynamically Specified
12.3 Given a Custom Tag, Identify The Necessary Value for The Bodycontent Tld Element for Any of The Following Tag Types:
* EMPTY-TAG
* Custom Tag That Surrounds Other JSP CODE
* Custom Tag That Surrounds Content That Is Used Only by The Tag Handler
12.4 Given a Tag Event Method (DostartTAG, DOAFTERBODY, AND DOENDTAG), Identify The Correct Description of The Methods Trigger.
12.5 Identify Valid Return Values for the Following Methods:
* dostarttag
* DoafterBody
* DOENDTAG
* PageConext.getOut
12.6 Given a "Body" or "page" Constant, Identify a Correct Description of the constant's use in the folowing methods: * dostarttag
* DoafterBody
* DOENDTAG
12.7 Identify The Method in The Custom Tag Handler That Accesses:
* A Given JSP Page's IMPLICIT VARIABLE
* The JSP Page's Attributes
12.8 IdentifyMethods That Return An Outer Tag Handler from With Inner Tag Handler.
Section 13: Design Patterns for Web Applications
-------------------------------------------------- ------------------------------
13.1 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.
13.2 Match Design Patternal Benefits That Accrue from The Use of the Pattern, for Any of The Following Patterns:
* Value Objects
* MVC
* Data Access Object
* Business Delegate