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
SBS 2003 can ping but cannot browse internet
NFS share on FreeNAS
Full Cone Nat on a Cisco router
A component's file does not match the verification information present in the component manifest
Black screen of death upon turning PC On
execute stored proc from asp doesnt run update
How to remove automatic login from Outlook 2010
2 levels treeMap
SQL Server 2008 Licensing
Set desktop wallpaper through Group Policy in SBS 2008