最新的Oracle Java EE 6 Web Component Developer Certified Expert - 1Z1-899免費考試真題
You have a new IT manager that has mandated that all JSPs must be refactored to include no scriptlet code.
The IT manager has asked you to enforce this.
Which deployment descriptor element will satisfy this constraint?
The IT manager has asked you to enforce this.
Which deployment descriptor element will satisfy this constraint?
正確答案: C
You are building a dating service web site. Part of the form to submit a client's profile is a group of radio buttons for the person's hobbies:
20. <input type = 'radio' name = 'hobbyEnum' value = 'HIKING'> Hiking <br>
21. <input type = 'radio' name = 'hobbyEnum' value = 'SKING'> Sking <br>
22. <input type = 'radio' name = 'hobbyEnum' value = 'SCUBA'> SCUBA <br>
23. <! - - and more options - - >>
After the user submits this form, a confirmation screen is displayed with these hobbies listed. Assume that an application-scoped hobbies, holds a map between the hobby enumerated type and the display name.
Which EL code snippet will display Nth element of the user's selected hobbles?
20. <input type = 'radio' name = 'hobbyEnum' value = 'HIKING'> Hiking <br>
21. <input type = 'radio' name = 'hobbyEnum' value = 'SKING'> Sking <br>
22. <input type = 'radio' name = 'hobbyEnum' value = 'SCUBA'> SCUBA <br>
23. <! - - and more options - - >>
After the user submits this form, a confirmation screen is displayed with these hobbies listed. Assume that an application-scoped hobbies, holds a map between the hobby enumerated type and the display name.
Which EL code snippet will display Nth element of the user's selected hobbles?
正確答案: B
When using Servlet asynchronous API if you want to dispatch the request back to a particular url - "url" within the same ServletContext which of the following API would you use?
正確答案: C
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.)
正確答案: B,D
You are creating a web form with this HTML:
11. <form action="sendOrder.jsp">
12. <input type="text" name="creditCard">
13. <input type="text" name="expirationDate">
14. <input type="submit">
15. </form>
Which HTTP method is used when sending this request from the browser?
11. <form action="sendOrder.jsp">
12. <input type="text" name="creditCard">
13. <input type="text" name="expirationDate">
14. <input type="submit">
15. </form>
Which HTTP method is used when sending this request from the browser?
正確答案: E
Given a war file with the following structure
| - WEB-INF/classes/Myservlet.class
| - WEB-INF/lib/wf.jaf
Where wf.jar contains a valid web-fragment.xml and the following two classes: MyFilter1.class and MyFiler2.class.
The web-fragment.xml is as follows:

The following are some code snippets:

When one access "/" of the above web application, which filters will be executed?
| - WEB-INF/classes/Myservlet.class
| - WEB-INF/lib/wf.jaf
Where wf.jar contains a valid web-fragment.xml and the following two classes: MyFilter1.class and MyFiler2.class.
The web-fragment.xml is as follows:

The following are some code snippets:

When one access "/" of the above web application, which filters will be executed?
正確答案: A
說明:(僅 Fast2test 成員可見)
Given a web fragment jar file, where should we put the web fragment.xml inside the jar file?
正確答案: B
You are creating a new ISP page and you need to execute some code that acts when the- page is first executed, but only once. Which three are possible mechanisms for performing this initialization code? (Choose three)
正確答案: A,B,E