分享
 
 
 

Sun Certified Web Component Developer for J2EE Platform (scwcd)

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

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 questions: 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 cause a browser to use the method, and identify benefits or functionality 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 within the following three Web scopes:

* 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 Applications

--------------------------------------------------------------------------------

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 listeners

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 listeners

3.3 Distinguish the behavior of the following in a distributable:

* Servlet context init. parameters

* Servlet context listener

* Servlet context attribute listener

* Session attribute listeners

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 constraint

* 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 into 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 following implicit 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 following tag functions, match the correctly constructed tag, with attributes and values as appropriate, with the corresponding description of the tag's functionality:

* 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 following 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 Identify methods that return an outer tag handler from within an 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 patterns with statements describing potential benefits that accrue from the use of the pattern, for any of the following patterns:

* Value Objects

* MVC

* Data Access Object

* Business Delegate

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有