L
Lachlan Hunt
Hi,
Is it possible to set up content negotiation to dynamically set the
content type of a JSP page? At the moment, the pages are hard coded
using the @page directive like this:
<%@ page contentType="text/html; charset=UTF-8" %>
and during development, I manually change it to application/xhtml+xml so
I can more quickly find validation errors, however I would like to be
able to determine what mime types are accepted by the client, and if
application/xhtml+xml is supported, deliver it, or text/html otherwise.
That would make development easier, and would mean that there is
actually a valid reason for using XHTML1, rather than HTML4, after
development is complete.
--
Lachlan Hunt
http://www.lachy.id.au/
lachlan . hunt at lachy . id . au
Please direct all spam to abuse@localhost
Thank you.
Is it possible to set up content negotiation to dynamically set the
content type of a JSP page? At the moment, the pages are hard coded
using the @page directive like this:
<%@ page contentType="text/html; charset=UTF-8" %>
and during development, I manually change it to application/xhtml+xml so
I can more quickly find validation errors, however I would like to be
able to determine what mime types are accepted by the client, and if
application/xhtml+xml is supported, deliver it, or text/html otherwise.
That would make development easier, and would mean that there is
actually a valid reason for using XHTML1, rather than HTML4, after
development is complete.
--
Lachlan Hunt
http://www.lachy.id.au/
lachlan . hunt at lachy . id . au
Please direct all spam to abuse@localhost
Thank you.