did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9781861007704

Professional: Scwcd Certification

by
  • ISBN13:

    9781861007704

  • ISBN10:

    1861007701

  • Edition: CD
  • Format: Trade Paper
  • Copyright: 2002-11-26
  • Publisher: Springer-Verlag New York Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $44.99
We're Sorry.
No Options Available at This Time.

Table of Contents

Introduction to the SCWCD Exam 1(1)
The Exam
1(1)
Why Take the Exam?
2(1)
Why You Shouldn't Take the Exam
3(1)
Common Mistakes
3(1)
What's Next?
4(1)
Further Study
4(1)
Best Practices
4(1)
How to Use This Book
5(2)
The Exam Objectives and the Structure of this Book
5(1)
Good Study Technique
5(1)
The Case Study
6(1)
Try Your New Skills out by Extending the Case Study
6(1)
This Book as a Reference Work
7(1)
The CD
7(2)
WHIZlabs
7(1)
About WroxSCWCD@Whiz
7(1)
Other Software
8(1)
Example Sourcecode
8(1)
Jakarta Tomcat
9(1)
Jakarta Ant
9(1)
Before We Begin
9(1)
Where to Find the Authors
10(1)
Conventions
10(1)
Customer Support
11(1)
How to Download the Sample Code
11(1)
Errata
11(1)
E-Mail Support
12(1)
p2p.wrox.com
12(3)
The Servlet Model
15(32)
The Servlet Model
17(20)
For each of the HTTP methods, Get, Post, and Put, identify the corresponding method in the HttpServlet class
19(2)
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
21(1)
HTTP Get
21(1)
HTTP Post
21(1)
HTTP Head
22(1)
HTTP Put
22(1)
For each of the following operations, identify the interface and method name that should be used:
22(1)
Retrieve HTML form parameters from the request
22(2)
Retrieve a servlet initialization parameter
24(1)
Retrieve HTTP request header information
25(3)
Set an HTTP response header; Set the content type of the response
28(1)
Acquire a text stream for the response
29(1)
Acquire a binary stream for the response
30(1)
Redirect an HTTP request to another URL
30(1)
Identify the interface and method to access values and resources and to set object attributes within the following three Web scopes:
31(1)
Request
31(1)
Session
32(1)
Context
33(1)
Given a life-cycle method: init, service, or destroy, identify correct statements about its purpose or about how and when it is invoked
34(1)
Servlet
34(1)
Use a RequestDispatcher to include or forward to a Web resource
35(1)
Obtaining a Request Dispatcher
36(1)
Summary
37(4)
Sample Questions
41(6)
The Structure and Deployment of Modern Servlet Web Applications
47(16)
The Structure and Deployment of Modern Servlet Web Applications
48(9)
Identify the structure of a Web Application and Web Archive file, the name of the Web App deployment descriptor, and the name of the directories where you place the following:
49(1)
The WebApp deployment descriptor
49(1)
The WebApp class files
49(1)
Any auxiliary JAR files
49(3)
Match the name with a description of purpose or functionality, for each of the following deployment descriptor elements:
52(2)
Servlet instance, Servlet name, and Servlet class
54(1)
Initialization parameters
54(2)
URL to named servlet mapping
56(1)
Summary
57(2)
Sample Questions
59(4)
The Servlet Container Model
63(22)
The Servlet Container Model
64(12)
Identify the uses for and the interfaces (or classes) and methods to achieve the following features:
64(1)
Servlet context init. parameters
64(3)
Servlet context listener
67(2)
Servlet context attribute listener
69(1)
Session attribute listeners
70(1)
Other Listeners
71(1)
Identify the WebApp deployment descriptor element name that declares the following features:
72(1)
Servlet context init. parameters
72(1)
Servlet context listener; Servlet context attribute listener; Session attribute listeners
73(1)
Distinguish the behavior of the following in a distributable web application:
74(1)
Servlet context init. parameters
75(1)
Servlet context listener; Servlet context attribute listener
76(1)
Session attribute listeners
76(1)
Summary
76(3)
Sample Questions
79(6)
Designing and Developing Servlets to Handle Server-Side Exceptions
85(22)
Designing and Developing Servlets to Handle Server-Side Exceptions
86(13)
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:
86(1)
Return an HTTP error using the setStatus method
87(4)
Return an HTTP error using the sendError method
91(2)
Given a set of business logic exceptions, identify the following:
93(1)
The configuration that the deployment descriptor uses to handle each exception
93(1)
Specify the handling declaratively in the deployment descriptor
94(1)
How to use a Request Dispatcher to forward the request to an error page
94(3)
Identify the method used for the following:
97(1)
Write a message to the WebApp log
97(1)
Write a message and exception to the WebApp log
98(1)
Summary
99(2)
Sample Questions
101(6)
Designing and Developing Servlets Using Session Management
107(24)
Session Tracking
108(1)
Session Tracking Mechanisms
108(1)
Cookies
108(1)
SSL Sessions
109(1)
URL-Rewriting
109(1)
Designing and Developing Servlets Using Session Management
109(13)
Identify the interface and method for each of the following:
109(1)
Retrieve a session object across multiple requests to the same or different servlets within the same WebApp
109(1)
Store objects into a session object
110(5)
Retrieve objects from a session object
115(2)
Respond to the event when a particular object is added to a session
117(1)
Respond to the event when a session is created and destroyed
118(1)
Expunge a session object
118(1)
Given a scenario, state whether a session object will be invalidated
119(1)
Explicit Invalidation
119(1)
Default Session Timeout
119(2)
Given that URL-rewriting must be used for session management, identify the design requirement on session-related HTML pages
121(1)
Summary
122(3)
Sample Questions
125(6)
Designing and Developing Secure Web Applications
131(22)
Designing and Developing Secure Web Applications
132(14)
Identify correct descriptions or statements about the security issues:
132(1)
Authentication
132(1)
Authorization
132(1)
Data integrity
132(1)
Auditing
132(1)
Malicious code
133(1)
Web site attacks
133(1)
Identify the deployment descriptor element names, and their structure, that declare the following:
133(1)
A security constraint
133(1)
A Web resource
134(1)
The login configuration
134(1)
A security role
135(6)
Given an authentication type: Basic, Digest, Form, and Client-Cert, identify the correct definition of its mechanism
141(1)
Basic Authentication
142(1)
Digest Authentication
143(1)
Form-based Authentication
143(2)
Client-Cert Authentication
145(1)
Summary
146(2)
Sample Questions
148(5)
Designing and Developing Thread-Safe Servlets
153(18)
Servlets and Threads
154(1)
Designing and Developing Thread-Safe Servlets
155(9)
Identify which attribute scopes are thread-safe:
155(1)
Local variables
155(1)
Instance variables
155(1)
Class variables
156(1)
Request attributes
157(1)
Session attributes
157(3)
Context Attributes
160(1)
Recap
160(1)
Identify correct statements about differences between the multi-threaded and single-threaded servlet models
160(1)
Multi-Threaded Model
161(1)
Single-Threaded Model
161(2)
Identify the interface used to declare that a servlet must use the single thread model
163(1)
Summary
164(1)
Sample Questions
165(6)
The JavaServer Pages (JSP) Technology Model
171(28)
The JavaServer Pages (JSP) Technology Model
173(18)
Write the opening and closing tags for the following JSP tag types:
173(1)
Directive
173(1)
Declaration
174(1)
Scriptlet
174(1)
Expression
175(1)
Actions (Tags)
176(1)
Given a type of JSP tag, identify correct statements about its purpose or use
176(1)
Directives
176(1)
Declaration
177(1)
Scriptlets
177(1)
Expressions
178(1)
Given a JSP tag type, identify the equivalent XML-based tags
179(1)
Identify the page directive attribute, and its values, that:
180(1)
Import a Java class into the JSP page
181(1)
Declare that a JSP page exists within a session
181(1)
Declare that a JSP page uses an error page
182(1)
Declare that a JSP page is an error page
182(1)
Additional Page Directive Attributes
183(1)
Identify and put in sequence the following elements of the JSP page lifecycle: Page translation, JSP page compilation, Load class, Create instance, Call jsplnit, Call jspService, Call jspDestroy
183(1)
Translation
183(1)
Initialization
184(1)
Servicing
184(1)
Destruction
185(1)
Match correct descriptions about purpose, function, or use with any of the following implicit objects:
185(1)
request
185(1)
response
186(1)
out
186(1)
session
186(1)
config
187(1)
application
187(1)
page
187(1)
pageContext
187(1)
exception
188(1)
Distinguish correct and incorrect scriptlet code for:
188(1)
A conditional statement
188(1)
An iteration statement
189(2)
Summary
191(4)
Sample Questions
195(4)
Designing and Developing Reusable Web Components
199(16)
Web Components and Reusability
200(1)
Designing and Developing Reusable Web Components
200(9)
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
200(1)
include Directive
200(3)
include Action
203(5)
Which Do I Use?
208(1)
Summary
209(2)
Sample Questions
211(4)
Designing and Developing JSP Pages Using JavaBean Components
215(26)
The JavaBean Component Architecture
216(2)
Designing and Developing JSP Pages Using JavaBean Components
218(12)
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
218(1)
Declare the use of a JavaBean component within the page
218(2)
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
220(3)
Access or mutate a property from a declared JavaBean
223(1)
Specify, for a jsp:getProperty tag, the property of the attribute
223(1)
Specify, for a jsp:setProperty tag, the property of the attribute to mutate, and the new value
224(2)
Given JSP page attribute scopes: request, session, application, identify the equivalent servlet code
226(3)
Identify techniques that access a declared JavaBean component
229(1)
Summary
230(4)
Sample Questions
234(7)
Designing and Developing JSP Pages Using Custom Tags
241(18)
Designing and Developing JSP Pages Using Custom Tags
242(10)
Identify properly formatted tag library declarations in the web application deployment descriptor
242(1)
Identify properly formatted taglib directives in a JSP page
243(1)
Option 1 -- Absolute URI
244(1)
Option 2 -- Relative URI
245(1)
Option 3 -- Packaged JAR
245(1)
Given a custom tag library, identify properly formatted custom tag usage in a JSP page
246(1)
An empty custom tag
246(1)
A custom tag with attributes
247(2)
A custom tag that surrounds other JSP code
249(1)
Nested custom tags
249(1)
Custom Tag Example
249(3)
Summary
252(2)
Sample Questions
254(5)
Designing and Developing a Custom Tag Library
259(34)
Tag Library Descriptors
261(2)
Designing and Developing a Custom Tag Library
263(3)
Identify the tag library descriptor element names that declare the following:
263(1)
The name of the tag
263(1)
The class of the tag handler
263(1)
The type of content that the tag accepts
263(1)
Any attributes of the tag
264(1)
Identify the tag library descriptor element names that declare the following:
265(1)
The name of a tag attribute
265(1)
Whether a tag attribute is required
265(1)
Whether or not the attribute's value can be dynamically specified
265(1)
Using Custom Tags on JSP Pages
266(2)
Given a custom tag, identify the necessary value for the body-content TLD element for any of the following tag types:
266(1)
Empty tag
266(1)
Custom tag that surrounds other JSP code
267(1)
Custom tag that surrounds content that is used only by the tag handler
267(1)
Coding Custom Tags
268(12)
Given a tag event method (doStartTag, doAfterBody, and doEndTag), identify the correct description of the method's trigger
269(5)
Identify valid return values for the following methods:
274(1)
doStartTag()
274(1)
doEndTag()
275(1)
doAfterBody()
275(1)
pageContext.getOut()
275(3)
Given a ``Body'' or ``Page'' constant, identify a correct description of the constant's use in the following methods: doStartTag(), doEndTag(), doAfterBody()
278(1)
Identify the method in the custom tag handler that accesses:
279(1)
A given JSP page's implicit variables
279(1)
The JSP page's attributes
280(1)
Co-Operating Tags
280(5)
Identify methods that return an outer tag handler from within an inner tag handler
281(4)
Summary
285(3)
Sample Questions
288(5)
J2EE Design Patterns
293(30)
What are Patterns?
294(1)
Why Do We Need Design Patterns?
295(1)
How Do We Document Patterns?
295(11)
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
296(1)
Required Patterns for the Exam
297(1)
The Value Object Pattern
298(2)
The Model-View-Controller Pattern
300(2)
Data Access Object Pattern
302(2)
Business Delegate Pattern
304(1)
Match design patterns with statements describing potential benefits that accrue from the use of the pattern, for any of the following patterns:
305(1)
Value Object
306(1)
Model-View-Controller
306(1)
Data Access Object
306(1)
Business Delegate
306(1)
Patterns Example
306(8)
Wrox Store
307(1)
MVC Pattern for the Store
307(3)
VO Pattern in the Store
310(1)
Business Delegate Pattern in the Store
311(1)
Data Access Object Pattern in the Store
312(2)
The Store in Action
314(1)
Some More Patterns
314(4)
View Helper
315(1)
Composite View
315(1)
Service To Worker
316(1)
Dispatcher View
317(1)
Summary
318(2)
Sample Questions
320(3)
Web Application Case Study
323(52)
Setting the Scene
324(2)
Building the Example
326(41)
The UserVO Class
326(1)
The ThreadVO Class
327(2)
The TopicVO Class
329(1)
The PostVO Object
330(1)
Accessing the Data
331(1)
Choice of the Database
331(1)
The users Table
331(1)
The topic Table
331(1)
The thread Table
332(1)
The post Table
332(1)
The roles Table
332(1)
The UserDAO Object
332(3)
The TopicDAO Object
335(2)
The ThreadDAO Object
337(3)
The PostDAO Object
340(2)
The Front Controller and Action Framework
342(1)
The Controller Servlet
343(1)
The Action Classes
344(8)
Potential Improvements
352(1)
The Forum Front-End
352(1)
The Iterator Tag
353(2)
The RoleTag Tag
355(1)
The FindUser Tag
355(1)
The Forum JSP Pages
356(11)
Deploying the Forum
367(4)
The Deployment Descriptor
367(2)
The Tag Library Descriptor
369(2)
Packaging and Deploying the Forum
371(1)
Future Improvements
371(1)
Summary
372(3)
Servlet Filters
375(20)
Servlet Filters
375(17)
Filter Mechanics
376(1)
The Filter Interface
377(1)
The FilterConfig Interface
377(1)
The HttpServletResponseWrapper Class
378(2)
Defining and Mapping Filters
380(1)
Filter Chaining
381(7)
Deploying the XSL Filter
388(1)
The XSL Filter in Action
388(1)
Filter Chaining in Action
389(2)
Designing Filters
391(1)
Summary
392(3)
Appendix A: Installing Tomcat 395(12)
Tomcat in Context
395(1)
Tomcat Components
396(1)
A Basic Tomcat Installation
396(11)
Tomcat Directory Structure
399(1)
Tomcat Configuration
400(1)
Deploying Web Applications
400(1)
Changing Tomcat's Port
401(1)
The manager Application
402(1)
Using the manager to Install an Application
403(1)
Using the manager to List Running Applications
403(1)
Using the manager to Reload a Running Application
404(1)
Using the manager to Start or Stop an Existing Application
404(1)
Other manager Commands
405(2)
Appendix B: Using WroxSCWCD@Whiz 407(8)
Mock Test
407(1)
Interactive Quiz
408(1)
Quick Revision Tips
409(1)
Detailed Explanations and Performance Evaluation
409(1)
Instructions
410(2)
Getting Started and Installing
412(1)
For Windows (WroxSCWCDWhiz.exe)
412(1)
For Unix/Linux (WroxSCWCDWhiz.bin)
412(3)
Appendix C: Exercise Answers 415(16)
Index 431

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program