Re: AW: DefaultServlet and getOutputStream() / getWriter()

2004-10-12 Thread Remy Maucherat
Steffen Heil wrote: I agree, that I am new to this and I might be wrong, but this leads me back right to where I started. Whom to ask to understand the existing code? I implied it already: no one. There are too many people who have touched the code, and too many tricky things going on. As a

Re: AW: DefaultServlet and getOutputStream() / getWriter()

2004-10-12 Thread Ben Souther
Steffen, Compile, run, and view the output from this program. I think you'll see the difference :o) public class Loop{ public static void main(String[] args){ System.out.println(Try-Catch inside loop:); for(int i = 0; i 10; i++){ try{

Re: AW: DefaultServlet and getOutputStream() / getWriter()

2004-10-09 Thread Rick Knowles
Steffen, My understanding (and I might be wrong here, so someone please correct me if I am) is that once you've called getWriter(), you can't call getOutputStream() on the same request. The reason is primarily so that you have to use the same char encoding etc on included servlets as in the