[
Lists Home |
Date Index |
Thread Index
]
Robert Koberg wrote:
> How do you create a valid JSP that renders HTML?
>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page">
> <html/>
> </jsp:root>
>
> since it is not in 'xsd:any namespace' -- how?
>
> I usually just create/render well-formed HTML and then use a servlet
> filter to XSL identity transform to HTML or XHTML(xml).
You could put the HTML in CDATA sections. Or use XHTML.
This is one reason the XML format for JSP is not widely used. AFAIK, it
is still recommended for internal (program-to-program) use only. The
very fact that it's XML makes it harder to use.
Bob Foster
|