Hi, I'm trying to use a tml template to serve an XML file that has dynamic content (in fact, a Java Web Start JNLP file):
<?xml version="1.0" encoding="utf-8"?> <jnlp xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" spec="1.5+" ... </jnlp> The content itself is rendered correctly, but I'm having problems setting the correct content type for the response. What I tried is this: @Inject private RequestGlobals requestGlobals; public void onActivate(String context) { // ... initialize internal state from context HttpServletResponse response = requestGlobals.getHTTPServletResponse(); response.setContentType("application/x-java-jnlp-file"); } The response still comes out as text/html. How can I convince Tapestry that the content type should be application/x-java-jnlp-file? Lars --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]