nerdexam
Oracle

1Z0-899 · Question #158

You are building your own layout mechanism by including dynamic content for the page's header and footer sections. The footer is always static, but the header generates the <title> tag that requests…

The correct answer is A. <jsp:include page=`/WEB-INF/jsp/header.jsp'>. See the full explanation below for the reasoning.

Question

You are building your own layout mechanism by including dynamic content for the page's header and footer sections. The footer is always static, but the header generates the <title> tag that requests the page name to be specified dynamically when the header is imported. Which JSP code snippet performs the import of the header content?

Options

  • A<jsp:include page=`/WEB-INF/jsp/header.jsp'>
  • B<jsp:import page=`/WEB-INF/jsp/header.jsp'>
  • C<jsp:include page=`/WEB-INF/jsp/header.jsp'>
  • D<jsp:import page=`/WEB-INF/jsp/header.jsp'>

How the community answered

(33 responses)
  • A
    70% (23)
  • B
    3% (1)
  • C
    18% (6)
  • D
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice