Content Type and MarkupPage added by Ulrich StärkContent Type and Markup OutputTapestry reads well-formed XML template files and renders its output as XML, with minor caveats:
In fact, Tapestry may decide to render a purely XML document; it depends on the content type of the response. The default content type for pages is "text/html" ... this triggers specialized XML rendering. A page may declare its content type using the [ContentType|../apidocs/org/apache/tapestry5/annotations/ContentType.html] class annotation. Content types other than "text/html" will render as well-formed XML documents, including the XML declaration, and more standard behavior for empty elements. Input/Output Character SetThe character set (aka character encoding) used when writing output and when parsing requests is normally "utf-8". All pages use the same encoding, which can be set using the tapestry.charset configuration setting.
Change Notification Preferences
View Online
|
