Sun Java System Web Server 6.1 SP12 Administrator's Guide

Overview of Servlets and JavaServer Pages

Sun Java System Web Server 6.1 supports the Servlet 2.3 API specification, which allows servlets and JSPs to be included in web applications.

A web application is a collection of servlets, JavaServer Pages, HTML documents, and other web resources which might include image files, compressed archives, and other data. A web application may be packaged into an archive (a WAR file) or exist in an open directory structure.

Note –

Servlet API version 2.3 is fully backward compatible with version 2.1, so all existing servlets will continue to work without modification or recompilation.

To develop servlets, use Sun Microsystems’ Java Servlet API. For information about using the Java Servlet API, see

A JSP is a page, much like an HTML page, that can be viewed in a web browser. However, in addition to HTML tags, it can include a set of JSP tags and directives intermixed with Java code that extend the ability of the web page designer to incorporate dynamic content in a page. These additional features provide functionality such as displaying property values and using simple conditionals. Sun Java System Web Server 6.1 supports the JavaServer Pages (JSP) 1.2 API specification.

Note –

Ensure that the case of the URI your application requests for (for example, /foo.JSP) matches the canonical case of the file system path (for example, C:\Program Files\WebServer\docs\foo.jsp). This is necessary because the Sun Java System Web Server 6.1 Java web container currently performs case-sensitive pattern matches.

For information about creating JSPs, see Sun Microsystem’s JavaServer Pages web site at:

For information about developing servlets and JSPs for use with Sun Java System Web Server, see the Sun Java System Web Server 6.1 SP12 Programmer’s Guide to Web Applications.