May 2001
Intermediate to advanced
1088 pages
30h 13m
English
If you look all the way back to Figure 29.1, you'll see a typical response sent by a Webserver. There are quite a few variations of response headers, but you only need to worry about a few when you write Java Web applications.
The Content-Type header is the most important response header. It tells the browser how to interpret the data it receives. A JSP has a default content type of text/html, although you can use the <%@page directive to change the content type. If you are returning XML data, for instance, you use a content type of text/xml.
The Content-Length header is important for many types of content that contain binary data. It tells the browser exactly how many ...
Read now
Unlock full access