request,
response,
(String)NULL,
true,
JspWriter.DEFAULT_BUFFER,
true
);
JspWriter
out
= pageContext.getOut();
// page context creates initial JspWriter "out"
try {
out.println("

");

out.println("Hello World");
out.println("

");
} catch (Exception e) {
pageContext.handlePageException(e);
} finally {
_factory.releasePageContext(pageContext);
}
}
}
C.4
The Web Application Descriptor
The Servlet is made to look as a JSP page with the following 
web.xml
:
SYSTEM "http://java.sun.com/j2ee/dtds/web app_1_2.dtd">
 HelloWorld 
 HelloWorld.class 
 HelloWorld 
 /HelloWorld.jsp 
 1 
Appendix 
148




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




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