you can use any method you want, but to make the most out of efficiency, use the write method of ServletOutputStream and print, println of PrintWriter (because PrintWriter is specially made for character and text based output while the regular outputstream is used for writing out other forms of data like binary etc.) which is exactly what the book recommends you to do
"It's not enough that we do our best; sometimes we have to do<br />what's required."<br /> <br />-- Sir Winston Churchill
posted 10 years ago
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads