Web Application Samples
Sun Java System Web Server 6.1 includes a set of sample web applications,
which can be found in the following directory:
server_root/plugins/java/samples/webapps/
The directory contains the directories and samples listed in the following
table. It also contains an index.html file that provides
more information about configuring and deploying the samples.
Table 1–1 Sample Directories
Directory
|
Contains
|
caching
|
JSP and servlet examples that demonstrate how to cache results of JSP
and servlet execution.
|
i18n
|
A basic J2SE web application that demonstrates how to dynamically change
the display language based on user preference.
|
javamail
|
A servlet that uses the Javamail API to send an email message.
|
jdbc
|
Java DataBase Connectivity examples in the following directories:
-
blob: A servlet that accesses Binary Large
Objects (BLOBs) via JDBC.
-
simple: A basic servlet that accesses an
RDBMS via JDBC.
-
transactions: A servlet that uses the transaction
API with JDBC to control a local transaction.
|
jndi
|
Java Naming and Directory Interface™ examples in the following
directories:
-
custom: Demonstrates using the custom resource.
-
external: Demonstrates using the external
resource.
-
readenv: Demonstrates using the environment
entries specified in the web.xml file.
-
url: A servlet that uses the URL resource
facility to access a resource.
|
jstl
|
Basic examples that demonstrate usage of the JSP Standard Tag Library.
|
rmi-iiop
|
Basic example that demonstrates using a servlet to access a stateless
EJB™ using RMI/IIOP running in Sun™ Java System Application Server
7.
|
security
|
Security examples in the following directories:
-
basic-auth: Demonstrates how to develop,
configure, and exercise basic authentication.
-
client-cert: Demonstrates how to develop,
configure, and exercise client certificate authentication.
-
form-auth: Demonstrates how to develop,
configure, and exercise form-based authentication.
-
jdbcrealm: Demonstrates how to develop,
configure, and exercise JDBC realm authentication.
|
simple
|
Basic JSP and servlet examples combined into a single web application
(Tomcat 3.2.2 samples).
|
You can also deploy these examples using the wdeploy utility.
For more information about this utility, see Deploying Web Applications.