Sun Java System Web Server 6.1 allows you to create and deploy web applications that extend your server dynamically. Sun Java System Web Server 6.1 provides a runtime environment, the web container, that supports web applications. The web container supports the JavaTM Servlet 2.3 API specification and the JavaServer PagesTM (JSPTM) 1.2 specification, which allow servlets and JSPs to be included in web applications.
In this chapter, we will use a sample application that is bundled with Sun Java System Web Server to walk through the steps involved in deployment. For details on how to create a web application and write servlets and JSPs, see the Sun Java System Web Server 6.1 SP10 Programmer’s Guide to Web Applications.
The WAR file is located in the server_root/plugins/java/samples/webapps/simple directory, webapps-simple.war,, for a simple web application.
Access the virtual server and click on the Web Applications tab
Select Server Machine from the “WAR File On” drop-down list and click the Go button.
Specify the following:
Click OK and then Apply to save and apply your changes.
To launch the application, type the following URL in a browser window:
The web application contains a listing of several sample web applications that you can run. Traverse the JSP and servlet links to execute each sample web application, as shown in Figure 6-3: Web Application Page - Sample 2:
The page server_root/plugins/java/samples/index.html is a good place to begin exploring and running the sample applications that are bundled with Sun Java System Web Server. For more information about how to set up database connectivity and use Java resources in web applications, see Chapter 7, Setting Up Database Connectivity .