Oracle Java EE 6 Web Component Developer Certified Expert - 1Z1-899 模擬練習

A developer chooses to avoid using singieThreadModel but wants to ensure that data If; updated in a thread safe manner.
Which two can support this design goal? (Choose two)

正解: A,E
Which defines the welcome files in a web application deployment descriptor?

正解: D
Which is a valid value for the enum EmptyRoleSemantic in Javax.servlet.annotation.ServletSecurity?

正解: A
Which Java expression can be used to check whether the web container is currently configured to track sessions via URL rewriting?

正解: A
解説: (PassTest メンバーにのみ表示されます)
Given an HttpServletRequest request and an httpServletResponse response:
41. HttpSession session = null;
42. / / insert code here
43. if (session = = null) {
44. / / do something if session does not exist
45. } else {
46. / / do something if session exists
47. }
To implement the design intent, which statement must be inserted at line 42?

正解: A
All of your JSPs need to have a link that permits users to email the web master. This web application is licensed to many small businesses, each of which have a different email address for the web master. You have decided to use a context parameter that you specify in the deployment descriptor, like this:
42. <context-param>
43. <param-name>webmasterEmail</param-name>
44. <param-value>[email protected]</param-value>
45. </context-param>
Which JSP code snippet creates this email link?

正解: D
Your web page includes a Java SE v1.5 applet with the following declaration:

Which HTTP method is used to retrieve the applet code?

正解: C
Which method must be used to encode a URL passed as an argument to HttpServletResponse. sendRedirect when using URL rewriting for session tracking?

正解: D