Re: http header setting problem in servlet

2007-04-24 Thread Hassan Schroeder
On 4/24/07, Huseyin Sinecan <[EMAIL PROTECTED]> wrote: Thanks for the answer.. Here is the complete code of doGet method: For clarity, here's my entire adaptation of your code: --- package com.example.test; import

Re: http header setting problem in servlet

2007-04-24 Thread Huseyin Sinecan
Hello, Thanks for the answer.. Here is the complete code of doGet method: protected void doGet(HttpServletRequest theRequest, HttpServletResponse theResponse) throws ServletException, IOException { theResponse.reset(); theResponse.resetBuffer();

Re: http header setting problem in servlet

2007-04-24 Thread Hassan Schroeder
On 4/24/07, Huseyin Sinecan <[EMAIL PROTECTED]> wrote: I want to set header parameters of http response in my servlet. Are you sure you're working on the right response object? Perhaps you can post a simple but complete example that fails... I just tried the following file as a JSP: -

Re: http header setting problem in servlet

2007-04-24 Thread Martin Gainty
ot;Huseyin Sinecan" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 24, 2007 9:29 AM Subject: http header setting problem in servlet Hello all, I want to set header parameters of http response in my servlet. I se

http header setting problem in servlet

2007-04-24 Thread Huseyin Sinecan
Hello all, I want to set header parameters of http response in my servlet. I set parameters as below: ** theResponse.reset(); theResponse.resetBuffer(); theResponse.setHeader("Request Version", "HTTP/1.1"); theResponse.setStatus(200);