aspose file tools
The moose likes I/O and Streams and the fly likes cannot append values from database when writing to a text file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "cannot append values from database when writing to a text file" Watch "cannot append values from database when writing to a text file" New topic
Author

cannot append values from database when writing to a text file

khamhielle gabriel
Greenhorn

Joined: Aug 15, 2011
Posts: 16
hi everyone

can somebody help me with this,
i've been trying to write some database value to a text file.
by which the valus are selected using checkbox from the
first page.


ex:
[ ]-serves as checkbox

[ ] 1
[ ] 2
[ ] 3
[ ] 4


if i selected or check 1 and 2.
i should be able to print both in the text file. but what happened is i am only printing the last selection w/c is 2.

for added info i was incorporating the checked value in my select.
and i guess i am not closing the streams inside the loop.
because it works fine in my other pages which requires writing text file.


here is my sample code:


thank you for your kind help.
God Bless you ^^


 
 
subject: cannot append values from database when writing to a text file
 
Threads others viewed
Session variable returns null value
request.setAttribute() and request.getAttribute()
Passing array values using Ajax & JSP
Finding how many checkboxes are slecter in a table?
To store multiple data in ResultSet
MyEclipse, The Clear Choice