Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

servlet?

Status
Not open for further replies.

z35

Programmer
Dec 21, 2001
206
US
Hi,

I am new to java. I want to write a servlet. I have a web page with a numbered list of paragraphs. At the bottom is a form with a textarea field. The viewer can input text, hit "submit" and the data will be posted live on the web page as the next item in the list.

I know I have to getParameter (grab the data)

open the html file

Use FileWriter and PrintWriter to write to the file...

but...how do I tell the servlet to write BEFORE the <body><html> etc.

and how do I refresh the page when it is done so that the viewer sees the post?

please help. thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top