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
Design issue, storing date from /proc
Server 2008 R2 - Can Connect to Server By IP, but not computer name
Popup not working in IE
Random emails not arriving in Outlook 2007
Sort Mysql table with recent entries
TextBox Must Be Placed Inside Form Tag Error
ForeFront TMG Intermittent Internet Connection
What does it mean if I am receiving output errors on all of my Cisco Aironet 1130AG?
Importing a text file into Access
‘Browse’ button component in jsf