> Mind if I ask you one more question?
Ask as many as you want!  If I can answer them I will.

> What are the advantages / disadvantages between HTML-Servlet and
> Applet-Servlet?

BOTH
---------
can maintain state over dropped connections

Servlet back-end
-----------------------
Disadvantage you must maintain state for the client in the server (much like
a TX).
Advantage: you can separate presentation from business logic very nicely.
Advantage: works well through firewalls (unlike IIOP, RMI, SQL*Net, etc
which must have other ports open and may use dynamic port assignment)

HTML Client
-----------------
Advantage: Extremely light-weight, very little client system dependencies.
Advantage: Quick startup time,excellent for casual use systems.
Disdavantage: client side logic must be in a different language from the
middle tier (eg Javascript. VBScript, ECMEA...)
Disadvantage: unless you use client side scripting tools, you end up with a
3270 block-mode terminal style interaction.
Disadvantage: user may re-issue forms by going back in browser history and
resubmitting.

Applet Client (of a Servlet)
--------------------
Advantage: very GUI interactive
Advantage: very tight control over application flow
Advantage: same langauge used for middle-tier
Disadvantage: slower startup time
Disadvantage: higher client requirements (do you use Java 1.1 or download a
large plug-in (JRE) to get swing).

My thoughts.
We tend to use HTML-Servlets for casual use systems and for our Internet
systems where we have no control over the client machines
We use Applets when we are on our Intranet for application users that will
be using the system regularly.
Example: Travel Vouchers - client tool is in HTML-Servlet, while the
accounting clerks use an Applet to approve, bundle, reject, change, manage
and submit to our financial systems.
Descision points ~16,000 vouchers per fiscal, 2500 casual users (ranginffrom
0-10 usages per person/per annum) 100 financial clerks.

BTW: check out XML-RPC ... very cool for Applet->Servlet work !!!

Hope this helps a little.

Thor HW

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to