On 23.03.2015, Daniel Poggenpohl wrote:
> perhaps you people can help me...my application has various
> resources deployed. Among them are a kind of HTML template files. I
> take the files, replace part of the contents of the file according to
> a certain syntax, and want to display the resulting
I don't really understand why you need the temp files? The normal approach
is to store the static template files somewhere (classpath or database etc)
but never actually store the merge results (template merged with context).
I think you should provide a page which returns a StreamResult which is
Server-side, in a Tapestry page or service, create the file.
final File htmlTempFile = File.createTempFile("htmlTemp",
".html");
htmlTempFile.deleteOnExit();
Then manipulate it. If you need to know its path, it's no problem...
String htmlTempPath
Hello,
perhaps you people can help me...my application has various resources deployed.
Among them are a kind of HTML template files. I take the files, replace part of
the contents of the file according to a certain syntax, and want to display the
resulting html file in an iframe on a Tapestry p