質問 1:You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session? (Choose two.)
A. long customerOID = 47L; session.setNumericAttribute("customerOID", new Long(customerOID));
B. long customerOID = 47L; session.setLongAttribute("customerOID", customerOID);
C. long customerOID = 47L; session.setAttribute("customerOID", new Long(customerOID));
D. long customerOID = 47L; session.setNumericAttribute("customerOID", customerOID);
E. long customerOID = 47L; session.setAttribute("customerOID", customerOID);
F. long customerOID = 47L; session.setLongAttribute("customerOID", new Long(customerOID));
正解:C,E
質問 2:DRAG DROP
Click the Task button.
Place the XML elements in the web application deployment descriptor solution to configure a servlet context event listener named com.example.MyListener.
正解:
質問 3:DRAG DROP
Click the Task button.
Given a servlet mapped to /control, place the correct URI segment returned as a String on the corresponding HttpServletRequest method call for the URI: /myapp/control/processorder.
正解:
質問 4:Which three are true about the HttpServletRequestWrapper class? (Choose three.)
A. The HttpServletRequestWrapper can be used to extend the functionality of a servlet request.
B. The HttpServletRequestWrapper is an example of the Decorator pattern.
C. An HttpServletRequestWrapper may be used only by a class implementing the javax.servlet.Filter interface.
D. A subclass of HttpServletRequestWrapper CANNOT modify the behavior of the getReader method.
E. An HttpServletRequestWrapper CANNOT be used on the request passed to the RequestDispatcher.include method.
F. An HttpServletRequestWrapper may modify the header of a request within an object implementing the javax.servlet.Filter interface.
正解:A,B,F
質問 5:You are building a web application that will be used throughout the European Union; therefore, it has significant internationalization requirements. You have been tasked to create a custom tag that generates a message using the java.text.MessageFormat class. The tag will take the resourceKey attribute and a variable number of argument attributes with the format, arg<N>. Here is an example use of this tag and its output:
<t:message resourceKey='diskFileMsg' arg0='MyDisk' arg1='1247' />
generates:
The disk "MyDisk" contains 1247 file(s).
Which Simple tag class definition accomplishes this goal of handling a variable number of tag attributes?
A. The Simple tag model does NOT support a variable number of attributes.
B. public class MessageTag extends SimpleTagSupport
implements DynamicAttributes {
private Map attributes = new HashMap();
public void setDynamicAttribute(String uri, String name,
Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
C. public class MessageTag extends SimpleTagSupport
implements VariableAttributes {
private Map attributes = new HashMap();
public void setVariableAttribute(String uri,
String name, Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
D. public class MessageTag extends SimpleTagSupport
implements DynamicAttributes {
private Map attributes = new HashMap();
public void putAttribute(String name, Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
E. public class MessageTag extends SimpleTagSupport
implements VariableAttributes {
private Map attributes = new HashMap();
public void putAttribute(String name, Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
正解:B
質問 6:You need to create a servlet filter that stores all request headers to a database for all requests to the web application's home page "/index.jsp". Which HttpServletRequest method allows you to retrieve all of the request headers?
A. java.util.Iterator getHeaderNames()
B. java.util.Enumeration getRequestHeaders()
C. String[] getHeaderNames()
D. java.util.Enumeration getHeaderNames()
E. java.util.Iterator getRequestHeaders()
F. String[] getRequestHeaders()
正解:D
弊社は無料Oracle 1Z0-858サンプルを提供します
お客様は問題集を購入する時、問題集の質量を心配するかもしれませんが、我々はこのことを解決するために、お客様に無料1Z0-858サンプルを提供いたします。そうすると、お客様は購入する前にサンプルをダウンロードしてやってみることができます。君はこの1Z0-858問題集は自分に適するかどうか判断して購入を決めることができます。
1Z0-858試験ツール:あなたの訓練に便利をもたらすために、あなたは自分のペースによって複数のパソコンで設置できます。
弊社のOracle 1Z0-858を利用すれば試験に合格できます
弊社のOracle 1Z0-858は専門家たちが長年の経験を通して最新のシラバスに従って研究し出した勉強資料です。弊社は1Z0-858問題集の質問と答えが間違いないのを保証いたします。
この問題集は過去のデータから分析して作成されて、カバー率が高くて、受験者としてのあなたを助けて時間とお金を節約して試験に合格する通過率を高めます。我々の問題集は的中率が高くて、100%の合格率を保証します。我々の高質量のOracle 1Z0-858を利用すれば、君は一回で試験に合格できます。
一年間の無料更新サービスを提供します
君が弊社のOracle 1Z0-858をご購入になってから、我々の承諾する一年間の更新サービスが無料で得られています。弊社の専門家たちは毎日更新状態を検査していますから、この一年間、更新されたら、弊社は更新されたOracle 1Z0-858をお客様のメールアドレスにお送りいたします。だから、お客様はいつもタイムリーに更新の通知を受けることができます。我々は購入した一年間でお客様がずっと最新版のOracle 1Z0-858を持っていることを保証します。
TopExamは君に1Z0-858の問題集を提供して、あなたの試験への復習にヘルプを提供して、君に難しい専門知識を楽に勉強させます。TopExamは君の試験への合格を期待しています。
弊社は失敗したら全額で返金することを承諾します
我々は弊社の1Z0-858問題集に自信を持っていますから、試験に失敗したら返金する承諾をします。我々のOracle 1Z0-858を利用して君は試験に合格できると信じています。もし試験に失敗したら、我々は君の支払ったお金を君に全額で返して、君の試験の失敗する経済損失を減少します。
安全的な支払方式を利用しています
Credit Cardは今まで全世界の一番安全の支払方式です。少数の手続きの費用かかる必要がありますとはいえ、保障があります。お客様の利益を保障するために、弊社の1Z0-858問題集は全部Credit Cardで支払われることができます。
領収書について:社名入りの領収書が必要な場合、メールで社名に記入していただき送信してください。弊社はPDF版の領収書を提供いたします。
Oracle Java Enterprise Edition 5 Web Component Developer Certified Professional 認定 1Z0-858 試験問題:
1. Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attribute in B's request object contains the URI of the original request received by servlet A?
A) javax.servlet.forward.REQUEST_URI
B) REQUEST_URI
C) javax.servlet.request_dispatcher.REQUEST_URI
D) javax.servlet.request_dispatcher.request_uri
E) javax.servlet.forward.request_uri
2. Click the Exhibit button. Given the web application deployment descriptor elements:
11.
<filter>
12.
<filter-name>ParamAdder</filter-name>
13.
<filter-class>com.example.ParamAdder</filter-class>
14.
</filter> ...
31.
<filter-mapping>
32.
<filter-name>ParamAdder</filter-name>
33.
<servlet-name>Destination</servlet-name>
34.
</filter-mapping> ...
55.
<servlet-mapping>
56.
<servlet-name>Destination</servlet-name>
57.
<url-pattern>/dest/Destination</url-pattern>
58.
</servlet-mapping>
What is the result of a client request of the Source servlet with no query string?
A) The output "filterAdded = null" is written to the response stream.
B) An exception is thrown at runtime within the service method of the Destination servlet.
C) An exception is thrown at runtime within the service method of the Source servlet.
D) The output "filterAdded = addedByFilter" is written to the response stream.
3. DRAG DROP
Click the Task button.
Place the code snippets in the proper order to construct the JSP code to include dynamic content into a JSP page at request-time.
4. Which path is required to be present within a WAR file?
A) /classes
B) /MANIFEST-INF
C) /index.html
D) /WEB-INF/classes
E) /WEB-INF/web.xml
F) /META-INF/index.xml
G) /WEB-INF/index.html
5. Given this fragment in a servlet:
23.
if(req.isUserInRole("Admin")) {
24.
// do stuff
25.
}
And the following fragment from the related Java EE deployment descriptor:
812.
<security-role-ref>
813.
<role-name>Admin</role-name>
814.
<role-link>Administrator</role-link>
815.
</security-role-ref>
900.
<security-role>
901.
<role-name>Admin</role-name>
902.
<role-name>Administrator</role-name>
903.
</security-role>
What is the result?
A) If line 24 executes the user's role will NOT be predictable.
B) If line 24 executes, the user's role will be Administrator.
C) The deployment descriptor is NOT valid.
D) If line 24 executes, the user's role will be Admin.
E) Line 24 can never be reached.
質問と回答:
質問 # 1 正解: E | 質問 # 2 正解: A | 質問 # 3 正解: メンバーにのみ表示されます | 質問 # 4 正解: E | 質問 # 5 正解: B |