TheFreeSite.com!

Monday, July 28, 2008

Server-side programming

This whole discussion has ignored the issue of server-side programming. What happens
when you make a request of a server? Most of the time the request is simply “send me this
file.” Your browser then interprets the file in some appropriate fashion: as an HTML page, a
graphic image, a Java applet, a script program, etc. A more complicated request to a server
generally involves a database transaction. A common scenario involves a request for a
complex database search, which the server then formats into an HTML page and sends to
you as the result. (Of course, if the client has more intelligence via Java or a scripting
language, the raw data can be sent and formatted at the client end, which will be faster and
less load on the server.) Or you might want to register your name in a database when you
join a group or place an order, which will involve changes to that database. These database
requests must be processed via some code on the server side, which is generally referred to as
server-side programming. Traditionally, server-side programming has been performed using
Perl and CGI scripts, but more sophisticated systems have been appearing. These include
Java-based Web servers that allow you to perform all your server-side programming in Java
by writing what are called servlets.
64 Thinking in Java www.BruceEckel.com

0 comments:

Tell Me Doubts In Java