Professional Documents
Culture Documents
Java Web Server For Beginners
Java Web Server For Beginners
Change the look and feel of your entire site through a single file. It's quick
and easy with presentation templates.
5. Flexible security model
Control access by user or group to website resources. Default realms are
supplied or you can create custom realms of your own.
6. Extensible
Dynamically extend server-side functionality without resorting to messy,
slow, or platform-bound scripts. Customize one of the many servlet
samples provided, or create your own -- then install, configure and manage
it using the Administration Tool.
7. Virtual host support
Host document collections from a single machine as if they were located
on different machines. Using DNS, you can even map the real and virtual
host names to different domain names.
8. Session support
Speed the development of e-commerce applications. Java Web Server
simplifies your work by managing the session lifecycle for you.
Standards based
Java 2 Platform, Standard Edition
Java Servlet API 2.1
Java Server Pages 1.0
Hyper Text Transfer Protocol (HTTP) 1.1
Secure Sockets Layer (SSL) 3.0 (in versions with SSL)
Common Gateway Interface (CGI) 1.1
Directory structures1. Admin- contents the files for administration of server.
2. Bin- contains some exe files to start server like httpd.exe, jsadmin.exe
etc
3. Cgi-bin used to store PERL prgs.
4. Doc- Contains documentation of JWS.
5. Examples- Contains some sample files of servlets, rmi, servlets, jdbc,
applet-servlet
6. Jre- files for storing bean files.
7. Lib contains library files for JWS API.
8. Public_html used to store HTML files.
9. Servlets- used to store class files of servlets.
This document provides instructions for accessing the Java Web Server
Administration Tool and recovering your login password (should you forget it).
admin::YWRtaW4=
4. Save the file.
5. Restart your Java Web Server.
You should now be able to access the Administration Tool using admin as
the login and password.
SUPPORTED PLATFORMS
To use the Java Web Server, you need a server environment as well as a client
environment.
For the server environment:
You require a Java Development Kit (JDK) 1.1.7 or a JDK 1.1.7-compliant Java
Runtime Environment (JRE).
For the client environment:
You require a JDK 1.1-compatible browser to run the Java Web Server
administrative tools.
Note: Most recent browsers are JDK 1.1-compatible. Current versions of
Netscape Navigator (4.5) and Microsoft Internet Explorer (4.0) are known to be
compatible.
PREREQUISITES
Hardware and Operating System Prerequisites
Minimum
Intel 486-based PC
32 MB RAM
Windows 95 (with Winsock 2*) OR Windows NT 4.0
Windows Sockets 2 (WinSock 2)
Recommended
Intel Pentium 166 (or higher)-based PC
64 MB RAM
Windows NT 4.0 with Service Pack 4
The compressed file is approximately 8.5 MB.
To install it, you require roughly 13 MB of hard drive space.
Special Note for Windows 95 Users:
Windows 95 is supported as a development and demonstration platform
only. It is not supported as a server deployment platform.
Microsoft does not recommend the use of Windows 95 as a server
platform.
DEFAULTS
Installation Directory
By default, the product installs into
C:\JavaWebServer2.0\
(Windows example)
INSTALLATION on WINDOWS
1. Place the self-extracting file on your machine
Download the Java Web Server self-extracting file (.exe) from the Java
Web Server web site (or copy the self-extracting file from the CD) onto your
machine.
2. Extract installation files and launch setup
Double-click on the self-extracting file to extract the Java Web Server
temporary installation files into the directory and launch the Setup program.
3. Follow the setup program's instructions
Follow the instructions in the Setup program to install Java Web Server in a
directory location on your hard disk.
Installation into a directory path containing spaces, such as C:\Program
Files\ is not recommended as it may cause problems with environment variables
used by the Java Web Server.
By default, Setup installs Java Web Server in C:\JavaWebServer2.0
On Windows NT only:
Exception Summary
ServletException- Defines a general exception a servlet throws when it
encounters difficulty.
UnavailableException Defines an exception that a servlet throws to indicate
that it is permanently or temporarily unavailable.
Package javax.servlet.http
Interface
HttpServletRequest-Extends the ServletRequest interface to provide additional
functionality for the request object that is passed to an HTTP servlet.
HttpServletResponse-Defines an HTTP servlet response that a servlet running
on a Web server sends to a client using HTTP.
HttpSession- Provides a way to identify a user across more than one page
request or visit to a Web site.
HttpSessionBindingListener-Causes an object to be notified when it is bound
to or unbound from a session.
Class Summary
Cookie-Creates a cookie, a small amount of information sent by a servlet to a
Web browser, saved by the browser, and later sent back to the server when the
client accesses the same Web page.
HttpServlet- Provides an abstract class that you can subclass to create an HTTP
servlet, which receives requests from and sends responses to a Web site.