You are here: irt.org | BBS | Re: Server Side Java Applet [This BBS is closed]
Posted by Stephen Saunders on September 10, 1998 at 08:19:36:
In Reply to: Re: Server Side Java Applet posted by Jason Nugent on September 09, 1998 at 15:19:19:
: : I've been writing Java stand-alone programs
: : for awhile. Now I am thinking of writing a small applet which
: : reads a text file stored on the server
: : and tags it with html tags. Finally the applet
: : sends the html-formatted text file to the
: : client.
I would, as Jason mentioned, suggest taking a look at the Java
Servlet Development Kit, or JSDK.
Sometimes referred to as "server-side applets", servlets allow
you to extend the functionality of your web server, much like
CGI programs do. Servlets have two massive advantages,
however: (1) the functionality you program can be moved from
webserver to webserver thanks to Java's portability (unlike
CGI programs in Perl or C), and (2) when hit by multiple
requests, multiple instances of the Java interpreter will not be
started. A single servlet will handle all incoming requests using
Java's multithreaded support.
To directly address your question, a servlet can easily read a
file from the server, parse/modify it, and send the new data
to the client.
If you've done any work with applets, picking up servlets
shouldn't be a problem. You can find a link to the JSDK 2.0
download from:
http://www.javasoft.com/products/servlet/index.html
If you have any questions concerning its use, or would like to
see a little sample code, post a followup or email me directly.
I would encourage the former, as others on the list might be
interested as well.
Cheers,
Stephen
Follow-ups:
You are here: irt.org | BBS | Re: Server Side Java Applet [This BBS is closed]