Microsoft
Software
Hardware
Network
Question : How to generate an HTML file if I've got the HTML body?
I have a method to retrieve the html body content. How could I generate a complate HTML file from it? Like adding <body></body>, and <header></header> tags, etc. Suppose I know what header I'm going to add. Thanks.
Answer : How to generate an HTML file if I've got the HTML body?
PrintWriter out = new PrintWriter(new FileWriter("/temp/test.htm
l"));
out.println("<html><head>"
);
out.println("</head><body>
");
out.println(html);
out.println("</body></html
>");
out.close();
Random Solutions
jquery dhtml dynamic population issue
iPad Camera Connection Kit does not display .jpg images on iPad
MySQL IFNULL() selection
perl regexp with div tags and space
Remove space from textbox automatically
Problems installing the AjaxControlTooKit.dll
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?
JavaScript Get Variable Field Value
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
Remove header from array created using Get-QADComputer cmdlet?