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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Servlet Write to File

Status
Not open for further replies.

vvicin01

Programmer
Aug 14, 2001
21
US
I created a servlet that queries a database and writes the output to an excel spread sheet. The problem I am having is that it appends the data instead of over writing the content. I am using CounterHome.seek(CounterHome.length());
CounterHome.writeBytes(data);

to hold the ResultSet and outputting the results. I wish to overwrite the data each time I am run the query. It sort of acts like a temporary storage. Please help if you can.

Thanks
Vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top