최신Oracle Java EE 6 Web Component Developer Certified Expert - 1Z0-899무료샘플문제
문제1
Which two security mechanisms can be directed through a sub-element of the <user-data-constraint> element in a web application deployment descriptor? (Choose two.)
Which two security mechanisms can be directed through a sub-element of the <user-data-constraint> element in a web application deployment descriptor? (Choose two.)
정답: A,B
문제2
Refer to the Exhibit.

A servlet sets a session-scoped attribute product with an instance of com.example.product an forward to a JSP.
Which two output the name of the product in the response? (Choose two)
Refer to the Exhibit.

A servlet sets a session-scoped attribute product with an instance of com.example.product an forward to a JSP.
Which two output the name of the product in the response? (Choose two)
정답: C,D
문제3
For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked.
Which JSP code snippet must you use to declare this instance variable in the JSP Document?
For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked.
Which JSP code snippet must you use to declare this instance variable in the JSP Document?
정답: A
문제4
Given the JavaBean class:
public class MyBean {
private Boolean roasted = false;
public MyBean () {}
public Boolean isRoasted () { returned roasted }
public void setRoasted (Boolean roasted) { this.roasted = roasted; ]
}
Assume a controller has created an instance of this bean, called setRoasted (true), and inserted the bean into the application scope using the name "myBean".
A JSP contains these two tags:
<jsp: useBean id = "aBean" class = "MyBean" scope = "page" \ />
<jsp: getProprty name = "aBean" property = "roasted" \ />
Which is true?
Given the JavaBean class:
public class MyBean {
private Boolean roasted = false;
public MyBean () {}
public Boolean isRoasted () { returned roasted }
public void setRoasted (Boolean roasted) { this.roasted = roasted; ]
}
Assume a controller has created an instance of this bean, called setRoasted (true), and inserted the bean into the application scope using the name "myBean".
A JSP contains these two tags:
<jsp: useBean id = "aBean" class = "MyBean" scope = "page" \ />
<jsp: getProprty name = "aBean" property = "roasted" \ />
Which is true?
정답: D
문제5
Which EL expression evaluates to the request URI?
Which EL expression evaluates to the request URI?
정답: B
문제6
Click the Exhibit button.
Given the HTML form:
1. <html>
2. <body>
3. <form action="submit.jsp">
4. Name: <input type="text" name="i1"><br>
5. Price: <input type="text" name="i2"><br>
6. <input type="submit">
7. </form>
8. </body>
9. </html>
Assume the product attribute does NOT yet exist in any scope.
Which code snippet, in submit.jsp, instantiates an instance of com.example.Product that contains the results of the form submission?

Click the Exhibit button.
Given the HTML form:
1. <html>
2. <body>
3. <form action="submit.jsp">
4. Name: <input type="text" name="i1"><br>
5. Price: <input type="text" name="i2"><br>
6. <input type="submit">
7. </form>
8. </body>
9. </html>
Assume the product attribute does NOT yet exist in any scope.
Which code snippet, in submit.jsp, instantiates an instance of com.example.Product that contains the results of the form submission?

정답: D
문제7
A web application for business expense reporting allows uploading expense receipts. Multiple receipts can be uploaded single step using one HTTP request. The servlet that processes the request has been marked with the
@MultipartConfig annotation.
Which method should the servlet use to access the uploaded files?
A web application for business expense reporting allows uploading expense receipts. Multiple receipts can be uploaded single step using one HTTP request. The servlet that processes the request has been marked with the
@MultipartConfig annotation.
Which method should the servlet use to access the uploaded files?
정답: C
설명: (ExamPassdump 회원만 볼 수 있음)