velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryce Nesbitt <>
Subject Fairly simple page returns wrong Content-Length in HTTP headers
Date Fri, 16 Dec 2005 05:18:31 GMT
I have a fairly simple velocity page which I have inherited.

When loaded, on some platforms and browsers, it mostly 'works' but never
'finishes' loading.
Turns out the HTTP headers claim the file is 31,940 bytes, and the
actual file (as loaded)
is only 19,000.  So any client that looks at the length hangs.  Others
get it instantly.

The returned HTTP headers are:
HTTP/1.1 200 OK
Date: Fri, 16 Dec 2005 05:11:12 GMT
Server: Apache/1.3.29 (Unix) Resin/2.1.12 mod_ssl/2.8.16 OpenSSL/0.9.6l
Cache-Control: max-age=86400
Expires: Sat, 17 Dec 2005 05:11:12 GMT
Last-Modified: Wed, 14 Dec 2005 20:02:07 GMT
Content-Length: 31940
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html

The file is no more complex than:
#macro( errorMessageLocal $message )
    #if( $fieldErrors.size() > 0 )
    <div style="border: 1px solid #f00; background-color: #fdd;
    #if( $message ) <strong>$!{message}</strong> #end
    <ul style="font-size:9pt;">
        #foreach( $error in $fieldErrors )

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    <title>Individual Member Application</title>
    <link rel="stylesheet" type="text/css" href="application_style.css" />
#errorMessageLocal( "Please fix the following errors:" )

Has anyone seen things like this before?  Any clues before I brute force
binary search the dang thing?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message