Oracle
1Z0-899 · Question #142
1Z0-899 Question #142: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #142. The question stem and answer options stay visible for context.
Question
You have built your own light-weight templating mechanism. Your servlets, which handle each request, dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout of the view by inserting the header, body, and footer elements into specific locations within the template page. The URLs for these three elements are stored in request- scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP code snippet should be used in the template JSP to insert the JSP content for the body of the page?
Options
- A<jsp:insert page='${bodyURL}' />
- B<jsp:insert file='${bodyURL}' />
- C<jsp:include page='${bodyURL}' />
- D<jsp:include file='${bodyURL}' />
- E<jsp:insert page='<%= bodyURL %>' />
- F<jsp:include page='<%= bodyURL %>' />
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.