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
Need a 40" or larger touchscreen computer
Trying to redirect a user from http to https automatically. Windows 2008 running II7
Access 2007 and sendkeys
install lexmark c912 on windows sbs 2003 box
java.lang.UnsatisfiedLinkE
rror
reverse ajax
Move DC role from Exchange Server
Cpanel LFD firewall (linux LAMP server)
Citrix \ IE - Published Web Site
can ping by ip, and by name, but not browse