Solved

writing HTML from within a java application

Posted on 2000-03-01
1
209 Views
Last Modified: 2006-11-17
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
Comment
Question by:twg
1 Comment
 

Accepted Solution

by:
lcoomber earned 50 total points
ID: 2572111
FileWriter fW = new FileWriter("foo.html");
PrintWriter out = new PrintWriter(fW);

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java  and programming certification ? 4 86
solarwind tftp server 2 45
Java Jpanels and Jframe 8 28
object oriented programming comparison 5 55
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now