The element is used to modify the XML declaration property of the output of a JSP document or tag file. This action can be used only in the JSP documents and in tag files that are in XML syntax. The XML declaration property in JSP2.0 can only be modified. All attributes of the are optional but some of them depend upon other attributes. This attribute contains the following attributes:
omit-xml-declaration: It is used to specify a value of true or yes and omits the XML declaration.
doctype-root-element: It indicates the root element of the XML document in the DOCTYPE.
doctype-system: It specifies that a DOCTYPE is generated in output and gives SYSTEM literal.
doctype-public: It specifies the value for the Public ID of the generated DOCTYPE. It can be specified if the doctype-system is specified.
Responses to “What is jsp:output?”