Ask the Expert

What could cause this JSP error?

I'm getting following error while accessing the JSP (getting this error only after we update the Windows 2000 OS with the new patch). I like to know why this is coming ? I'm using IIS5.0/Tomact 3.2/JSP1.1

    Requires Free Membership to View


"HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 04 Oct 2002 12:52:23 GMT Connection: close Content-Type: text/html;charset=ISO-8859-1 Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.3.1_01; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)"
Your error is in actuality the Status-line and response header of the HTTP message that your browser received. HTTP uses text headers to pass information about request and response messages. Each header consists of a list of unordered fields containing a field name and a field value delimited by a colon and a space. The Status-Line consists of the HTTP-protocol version followed by a status code and an a status phrase. The first digit of the status code defines the response class.

A breakdown of the Status-line and response header is as follows:

Header Name         Header Value 
============================================================ 
Status-Line:        HTTP/1.1 200 OK 
Server:             Microsoft-IIS/5.0 
Date:               Fri, 04 Oct 2002 12:52:23 GMT 
Connection:         close 
Content-Type:       text/html;charset=ISO-8859-1 
Servlet-Engine:     Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2;
Java 1.3.1_01; Windows 2000 5.0 x86; java.vendor=Sun
Microsystems Inc.)
A rough translation of these fields is as follows:

The Status-Line acknowledges that the responding server understands HTTP/1.1 and that it was able to handle the request successfully (status code = 200 and status phrase = OK).

The Server field indicates that the responding server is IIS, version 5.0.

The Date field indicates the date and time that the response was originated.

The Connection field indicates that the connection will be closed after completion of the response.

The Content-Type field indicates that the response body content-type is text/html and the media-type consists of character set ISO-8859-1.

The Servlet-Engine field indicates that the Web server is Tomcat, version 3.2.3. It also acknowledges additional information pertaining to other engines, JVM, OS, etc. that the Web server is using.

The question is: why are you receiving the response header as the content page?

Without seeing the source code for the JSP page, I can only offer a couple of possibilities:

1) The JSP page is explicitly trying to set the HTTP headers. Since a JSP/servlet handles this automatically any attempts to manually set them could result in them being handled as page content.

2) A blank line after the headers is the delimiter separating the headers from the page content. Try looking at the raw output of the response message to see if there is a blank line after the headers.

This was first published in October 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: