Hi,

I use Freemarker to generate a HTML-file and spit it out to the browser like this:

RequestCycle.get().setRequestTarget(new StringRequestTarget("text/html", body));

With Jetty, it works great, but in Tomcat, the result is rendered as text/plain, which I think is the default mime type for Tomcat.

My output starts like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

...

Can anyone think of a solution to this?

Thanks,
Edvin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to