Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

Oracle Java EE 6 Web Component Developer Certified Expert (1Z1-899) Free Practice Test

Question 1
In a jsp-centric shopping cart application cart application to move a client's home address of Customer object into the shipping address of the order object. The address data is stored in a value object class called Address with properties for: street address, city, province, country, and postal code.
Which two code snippets can be used to accomplish this goal? (Choose two.)

Correct Answer: A,E
Question 2
Which method must be used to encode a URL passed as an argument to HttpServletResponse. sendRedirect when using URL rewriting for session tracking?

Correct Answer: C
Question 3
You are building JSP pages that have a set of menus that are visible based on a user's security role. These menus are hand-crafted by your web-design team; for example, the SalesManager role has a menu in the file
/WEB-INF/html/sales-mgr-menu.html.
Which JSP code snippet should be used to make this menu visible to the user?

Correct Answer: C
Question 4
Which three are true about the HttpServletRequestWrapper class? (Choose three.)

Correct Answer: B,D,F
Question 5
You have been contracted to create a web site for a free dating service. One feature is the ability for one client to send a message to another client, which is displayed in the latter client's private page. Your contract explicitly states that security is a high priority. Therefore, you need to prevent cross-site hacking in which one user inserts JavaScript code that is then rendered and invoked when another user views that content.
Which two JSTL code snippets will prevent cross-site hacking in the scenario above? (Choose two.)

Correct Answer: A,E
Question 6
Given the web application deployment descriptor elements:

Which element, inserted at line 27, causes the ParamAdder filter to be applied when MyServlet is invoked by another servlet using the RequestDispatcher.include method?

Correct Answer: D
Question 7
A session-scoped attribute is stored by a servlet, and then servlet forwards to a JSP page. Which three jsp:useBean attributes must be used to access this attribute in the JSP page? (Choose three.)

Correct Answer: A,D,E