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
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();
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:
-
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
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);