Oracle Java Enterprise Edition 5 Web Component Developer Certified Professional - 1Z0-858 FREE EXAM DUMPS QUESTIONS & ANSWERS

Which two from the web application deployment descriptor are valid? (Choose two.)
Correct Answer: A,C Vote an answer
Which three are described in the standard web application deployment descriptor? (Choose three.)
Correct Answer: D,E,F Vote an answer
You are creating a JSP page to display a collection of data. This data can be displayed in several different ways so the architect on your project decided to create a generic servlet that generates a comma-delimited string so that various pages can render the data in different ways. This servlet takes on request parameter: objectID. Assume that this servlet is mapped to the URL pattern: /WEB-INF/data.
In the JSP you are creating, you need to split this string into its elements separated by commas and generate an HTML <ul> list from the data.
Which JSTL code snippet will accomplish this goal?
Correct Answer: A Vote an answer
Which activity supports the data integrity requirements of an application?
Correct Answer: B Vote an answer
Which defines the welcome files in a web application deployment descriptor?
Correct Answer: B Vote an answer
Given the definition of MyObject and that an instance of MyObject is bound as a session attribute:
8.package com.example;
9.public class MyObject implements
10.
javax.servlet.http.HttpSessionBindingListener {
11.
// class body code here
12.
}
Which is true?
Correct Answer: A Vote an answer
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?
Correct Answer: B Vote an answer
You are building your own layout mechanism by including dynamic content for the page's header and footer sections. The footer is always static, but the header generates the <title> tag that requires the page name to be specified dynamically when the header is imported. Which JSP code snippet performs the import of the header content?
Correct Answer: C Vote an answer
A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Which design pattern provides a solution for this problem?
Correct Answer: D Vote an answer
Click the Exhibit button.
The attribute "name" has a value of "Foo,"
What is the result if this tag handler's tag is invoked?
Correct Answer: D Vote an answer
Your web page includes a Java SE v1.5 applet with the following declaration:
11.
<object classid='clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA'
12.
width='200' height='200'>
13.
<param name='code' value='Applet.class' />
14.
</object>
Which HTTP method is used to retrieve the applet code?
Correct Answer: A Vote an answer
For debugging purposes, you need to record how many times a given JSP is invoked before the user's session has been created. The JSP's destroy method stores this information to a database. Which JSP code snippet keeps track of this count for the lifetime of the JSP page?
Correct Answer: B Vote an answer
You need to store a floating point number, called Tsquare, in the session scope. Which two code snippets allow you to retrieve this value? (Choose two.)
Correct Answer: C,E Vote an answer
Given this fragment from a Java EE deployment descriptor:
341.
<error-page>
342.
<exception-type>java.lang.Throwable</exception-type>
343.
<location>/mainError.jsp</location>
344.
</error-page>
345.
<error-page>
346.
<exception-type>java.lang.ClassCastException</exception-type>
347.
<location>/castError.jsp</location>
348.
</error-page>
If the web application associated with the fragment above throws a ClassCastException.
Which statement is true?
Correct Answer: B Vote an answer
Which statement is true about web container session management?
Correct Answer: C Vote an answer
0
0
0
10