|
|
Table of Contents |
The VolanoChat applet configuration
servlet allows you to modify the applet property files through a
form on a Web page. The servlet presents the applet's Java properties by
matching their names against a Web page template. By default, the
English VolanoChat applet properties are contained in the file
english.txt, and the
default template is the file
template.html.
The template file uses brief XML notation using the names of the applet properties to specify where to place the corresponding applet property values. When you invoke the configuration servlet through a link like the following (all on one line):
http://www.yourdomain.com:8080/servlet/config? template=template.html&properties=english.txt
the configuration servlet combines the template.html
file with the property values found in english.txt. For
example, where the HTML template specifies
<server.port/>, the configuration servlet would look
up the value of the server.port property in the
english.txt file and place the value 8000.
To enable the use of the configuration servlet, you must first:
admin.password property in the server's
properties.txt file. You will be prompted for a name and
password when you invoke the applet configuration servlet. You can use
any name, but the password must match the server's
admin.password value. This password makes sure that only
those with the password may update the applet's configuration files.
applet.codebase property
in the server's properties.txt file to point to the full
path of your VolanoChat applet code base directory. You must specify a
local path name (not a URL). This property lets the configuration
servlets know where to find the applet's property files.
You should specify the path in Web notation using a forward slash ("/")
for the path separator instead of the Windows backward slash character
("\"). For example, on UNIX you would define something like:
applet.codebase=/home/volano/vchat2.1.10.2/vcclientwhile on Windows you would define something like:
applet.codebase=c:/volano/vchat2.1.10.2/vcclient
To set up Web-based configuration of the VolanoChat applet, you can
modify the sample file called config.html found in the
vcclient directory of your VolanoChat server installation.
|
|
Check HTML | Table of Contents |