310-083試験無料問題集「SUN Sun Certified Web Component Developer for J2EE 5 認定」

Which two are valid values for the <transport-guarantee> element inside a <security- constraint> element of a web application deployment descriptor? (Choose two.)

Given:
1 1. <% java.util.Map map = new java.util.HashMap();
1 2. request.setAttribute("map", map);
1 3. map.put("a", "b");
1 4. map.put("b", "c");
1 5. map.put("c", "d"); %>
1 6. <%-- insert code here --%>
Which three EL expressions, inserted at line 16, are valid and evaluate to "d"? (Choose three.)

正解:B,D,E 解答を投票する
Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all of the JSP files specified in the requests below exist in the locations specified. Which two requests, issued from a browser, will return an HTTP 404 error?
(Choose two.)

Given the two security constraints in a deployment descriptor:
1 01. <security-constraint>
1 02. <!--a correct url-pattern and http-method goes here-->
1 03. <auth-constraint><role-name>SALES</role-name></auth-
1 03. <auth-constraint>
1 04. <role-name>SALES</role-name>
1 05. </auth-constraint>
1 06. </security-constraint>
1 07. <security-constraint>
1 08. <!--a correct url-pattern and http-method goes here-->
1 09. <!-- Insert an auth-constraint here -->
1 10. </security-constraint>
If the two security constraints have the same url-pattern and http-method, which two, inserted independently at line 109, will allow users with role names of either SALES or
MARKETING to access this resource? (Choose two.)

DRAG DROP
Click the Task button.
Given a request from mybox.example.com, with an IP address of 10.0.1.11 on port 33086, place the appropriate ServletRequest methods onto their corresponding return values.
正解:
Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?

One of the use cases in your web application uses many session-scoped attributes. At the end of the use case, you want to clear out this set of attributes from the session object.
Assume that this static variable holds this set of attribute names:
2 01. private static final Set<String> USE_CASE_ATTRS;
2 02. static {
2 03. USE_CASE_ATTRS.add("customerOID");
2 04. USE_CASE_ATTRS.add("custMgrBean");
2 05. USE_CASE_ATTRS.add("orderOID");
2 06. USE_CASE_ATTRS.add("orderMgrBean");
207. }
Which code snippet deletes these attributes from the session object?

You are designing an n-tier Java EE application. You have already decided that some of your JSPs will need to get data from a Customer entity bean. You are trying to decide whether to use a Customer stub object or a Transfer Object. Which two statements are true? (Choose two.)

For an HttpServletResponse response, which two create a custom header? (Choose two.)