2.1.6
White Space
In HTML and XML, white space is usually not significant, with some exceptions. One 
exception is that an XML file must start with the characters 
, with no leading 
whitespace characters.
This specification follows the whitespace behavior defined for XML, that is; all white space 
within the body text of a document is not significant, but is preserved. 
For example, since directives generate no data and apply globally to the JSP page, the 
following input file is translated into the corresponding result file:
For this input,
This is the default value
<%@ page buffer= 8kb  %>
The rest of the document goes here
The result is
note the empty line
The rest of the document goes here
As another example
, for this input,
<% response.setContentType( .... );
note no white between 
whatever... %>
the two elements
<%@ page buffer= 8kb  %>
The rest of the document goes here
The result is
no leading space
note the empty line
The rest of the document goes here
Chapter 2
Standard Syntax and Semantics
36




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.