nerdexam
Oracle

1Z0-899 · Question #74

You are building a web application that will be used throughout the European Union; therefore, it has significant internationalization requirements. You have been tasked to create a custom tag that…

The correct answer is E. public class MessageTag extends SimpleTagSupport implements. See the full explanation below for the reasoning.

Question

You are building a web application that will be used throughout the European Union; therefore, it has significant internationalization requirements. You have been tasked to create a custom tag that generates a message using the jav a.text.MessageFormat class. The tag will take the resourceKey attribute and a variable number of argument attributes with the format, arg<N>. Here is an example use of this tag and its output: <t:message resourceKey='diskFileMsg' arg0='MyDisk' arg1='1247' /> generates: The disk "MyDisk" contains 1247 file(s). Which Simple tag class definition accomplishes this goal of handling a variable number of tag attributes?

Options

  • Apublic class MessageTag extends SimpleTagSupport implements
  • BThe Simple tag model does NOT support a variable number of attributes.
  • Cpublic class MessageTag extends
  • Dpublic class MessageTag extends SimpleTagSupport implements
  • Epublic class MessageTag extends SimpleTagSupport implements

How the community answered

(15 responses)
  • A
    13% (2)
  • B
    7% (1)
  • C
    7% (1)
  • E
    73% (11)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice