|
Here
is the jzChat V1.0 servlet (free).
This servlet performs a 100% HTML/JavaScript chatroom.
Guest users just have to enter a nickname for chatting.
They can choose chat's look&feel. Private
messages are allowed. Root user chooses chatroom's
name and subject. Root also controls the chatroom
: max. users, open, close, transcript, list or kickoff
users, clear blacklist features are available. jzChat
is protected against cross scripting attacks. Only
root user could use "direct-HTML". Note
that this chat could run in both framed and non-framed
mode.
|
|
 |
last
update : 01/09/2001
You can now license the source code
of jzChat 1.12 here !
How to install jzChat
?
Download the package v1.12
here (39.9
KB - zip file).
(Download
old package v1.11 or v1.10
- zip file)
To
install jzChat, your WebServer or
ISP has to support JAVA SERVLETS
(note that servlets support is not CGI support).
Click here
to get a list. Some are free.
The package is built as follows :
|
servlet/
This directory contains all class files needed to
run jzChat :
- jzchat.class
(the servlet)
- jzchat.initArgs
(servlet init parameter file, Jserv/JavaWebServer
only)
- jzChat/*.class
(core)
- jzChat/Util/*.class
(core)
|
web/
This directory contains all files needed for jzChat
configuration and customization :
- jzchat.conf
(chat configuration file)
- adminlogin.jsp
(root login web page)
- openchatroom.jsp
(root chatroom opening web page)
- viewchatroom.jsp
(root chatroom management web page)
- chatlogin.jsp
(guest login web page)
- chatroomjs.jsp
(chat web page)
|
The
servlet/ directory should be placed under the servlet
directory of the web server (servlets/ or servlet/ as
usually). The web/ directory could be (and should
be) placed outside the web root. Then
you have to setup config parameter through init
parameters of your servlet engine. Fill in it with
jzchat.conf file (absolute path needed). If you're using
JSERV servlet engine then edit jzchat.initArgs to do so.
How
to setup parameters
?
Edit jzchat.conf from web/
directory change parameters if needed. Pay attention to
parameters in red :
JzChat also provides MultiLanguage support. You can
change a few messages (login, logout, kickoff ...) from
jzchat.conf file and customize/translate *.jsp web pages.
How
to customize jzChat
?
You
can customize *.jsp files under web/ but you should
pay attention to <%= variablename
%>. Do not remove them and do not remove
JavaScripts !. Dreamweaver seems to be one of
the best tool to do such customization.
In addition to HTML customization, you can change "internal
chat parameters" like fontsize, fontcolor and fontname
for both mIRC and Classic look an feel. To do so have a
look at the end of jzchat.conf.
F.A.Q
How to access to
the admin web panel ?
Try http://www.mydomain.com/servlet/jzchat?todo=adminlogin
(if your servlet
is under /servlet/jzchat).
You should get the root login web page.
How to access to
the guest web panel ?
Try http://www.mydomain.com/servlet/jzchat
(if your servlet
is under /servlet/jzchat).
You should get the guest login web page.
Which servlet engine
does jzChat support ?
jzChat V1.x is Servlet API 2.0 compliant
so it should run under any servlet engine. Until now we've
already passed tests it under Jwsdk, JServ, Tomcat, Jrun,
JavaWebServer and Weblogic.
How to configure
jzChat.initArgs file ?
The jzChat.initArgs file is only needed
for JSERV or JavaWebServer servlet engines.
You have to fill in config parameter with the absolute path
to jzchat.conf e.g. :
Unix system : config=/usr/local/apache/web/jzchat.conf
Win32 system : config=c:\\Apache\\JServ\\web\\jzchat.conf
What are init parameters
of a servlet engine ?
Init parameters allow to pass arguments
to a servlet at the first time. jzChat needs a config
init parameter. This config's value must be
the absolute path to jzchat.conf (c.f.
above).
How
to configure web.xml under Tomcat ?
Add the following lines under <web-app>
tag :
<servlet>
<servlet-name>
jzchat
</servlet-name>
<servlet-class>
jzchat
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>d:\\anAbsoluteWin32Path\\WEB-INF\\web\\jzchat.conf</param-value>
</init-param>
</servlet>
Which Servlet API
jzChat supports ?
jzChat V1.0x runs under Servlets API V2.0.
So it should work under any servlet engine.
Does jzChat work
under application servers like weblogic, websphere, silverstream
?
Yes, it works. You have to pay attention
of the init parameter. Each application server (and
servlet engine) have different way to configure init parameters.
So don't forget you have to fill in the config init
parameter with the absolute path (including filename) to
jzchat.conf.
I'm running under
APACHE web server, how can I add servlet support ?
You should install JSERV.
It's a free servlet engine quite powerful. You can also
use Tomcat.
jzChat doesn't work
under www.mycgiserver.com ISP ?
mycgiserver.com hosts servlets for free
but all servlets must be included in a package named as
the account. It's a build operation. mycgiserver.com doesn't
support servlets that you can't rebuild. Source code of
jzChat is not available so you can't rebuild it for mycgiserver.com.
We don't provide support for mycgiserver.com anymore (too
many requests).
How
to change charset ?
charset could be modified for each web
page through CHARSET parameter. You should use FRAMED
mode (or NON FRAMED mode) for charset different from
iso-8859-1. For instance, to have a BIG5 charset then add
the following CHARSET line in jzchat.conf :
CHARSET = <meta http-equiv="Content-Type"
content="text/html; charset=Big5">
Why
should or shouldn't I use jzChat ?
Here are the pros and cons :
| Pros |
Cons |
- Full
HTML/JavaScript (No Applet), so no problems with
browser support.
- Nothing
to download to init the chatroom.
- Pass
through FireWalls.
- Works
under HTTPS (SSL).
- Admin
features (list users, kick off user, transcripts,
open/close chatroom, quota).
- Customizable
and multilanguage support.
- Free
and ads-free.
|
- Java
Servlet support needed for server-side (new technology,
best than CGI but not well known yet).
- Flickering
refresh process. (Quite better with buffered-framed
mode).
|
|