• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

writing HTML from within a java application

Is there a way to write HTML page and save it  from within a java application just like writing HTML from within a servlet using PrintWriter out=response.getWriter();out.println("<html>"..............)?
0
twg
Asked:
twg
1 Solution
 
lcoomberCommented:
FileWriter fW = new FileWriter("foo.html");
PrintWriter out = new PrintWriter(fW);

out.println("<html>")....
etc.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now