nerdexam
Oracle

1Z0-899 · Question #129

A web application allows the HTML title banner to be set using a servlet context initialization parameter called titleStr.Which two properly set the title in this scenario? (Choose two.)

The correct answer is B. <title>${initParam.titleStr}</title> E. <title>${initParam['titleStr']}</title>. See the full explanation below for the reasoning.

Question

A web application allows the HTML title banner to be set using a servlet context initialization parameter called titleStr.Which two properly set the title in this scenario? (Choose two.)

Options

  • A<title>${titleStr}</title>
  • B<title>${initParam.titleStr}</title>
  • C<title>${params[0].titleStr}</title>
  • D<title>${paramValues.titleStr}</title>
  • E<title>${initParam['titleStr']}</title>
  • F<title>${servletParams.titleStr}</title>
  • G<title>${request.get("titleStr")}</title>

How the community answered

(50 responses)
  • A
    2% (1)
  • B
    80% (40)
  • D
    4% (2)
  • F
    12% (6)
  • G
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice