On Nov 28, 2007 3:50 PM, Kristian Marinkovic wrote: > hi lars, > > return an instance of StreamResponse: > > StreamResponse onActivate(String context) { > return new StreamResponse() { > // implement interface > public String getContentType() { > return"application/x-java-jnlp-file"; > } > } > }
Thanks, I was only aware of the StreamResponse magic for action requests, didn't know that it's supported for page render requests as well. So I could do this StringBuilder buf = new StringBuilder(); buf.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); // ... return new TextStreamResponse("application/x-java-jnlp-file", buf.toString()); but I don't see a way to leverage tapestry's templating engine so the xml becomes more maintainable. I'll probably use the Meta annotation approach and fall back to StreamResponse if I should hit one of the XML support problems Josh mentioned. Again, thanks to both of you, Lars --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]