Re: Newbee on web apps with Delphi

From: Bjørge Sæther (bjorge_at_hahaha_itte.no)
Date: 11/04/04


Date: Thu, 4 Nov 2004 22:42:23 +0100

Jad wrote:
> Hi Folks,
>
> I need to develop my first web application with delphi for database
> management, so I would like to ask you if you know some tutorials,
> books or any info to begin with. I would appreciate your help.

OK. I'll try to describe what I know about writing such applications:

- CGI applications: It's simply an application that receives the request via
"stdin" (You normally use Read, ReadLn) and provide output (HTML) vie stdout
(Write, WriteLn). Very simple, the only problem being that the application
is run once per request, and that isn't exactly ideal for database-based web
applications ;-)
- ISAPI modules: A .dll with a standarized set of exported routines to
provide communication with the Web server. In Version 2 of the ISAPI spec I
believe there are possibilities of making the module persistent throughout a
session (but I gave up on this as the Apache Web server couldn't handle it).
In practice I believe you should only do this with IIS.
- WebSnap: This is more suitable for database-based applications, as the
server application normally stays loaded throughout the session. But - the
WebSnap concept is quite complicated - involving both the DataSnap stuff and
the HTML output stuff. My advice would be to stay clear of this one, due to
bad experience with the Midas/DataSnap concept. It may work like a charm,
but there is quite a lot to understand toi make it work as expected. It may
be easier to catch up on a server side scripting language like php. The good
thing about php is that there are litterally a million php developers out
there, while WebSnap...is not very commonly used, to my knowledge.
- ASP.NET (Delphi 8->): I've just started looking into this one, and it
seems simpler than much of the other stuff - as you design HTML *and* write
code within the very same module. Much like creating a normal Windows
application. I'm a little bit afraid of the usual RAD approach, though,
especially for largish projects. And, AFIK, it struggles with the problem of
loading/unloading the modules per request.

Now, what are you gonna do with this app of yours ?

-- 
Regards,
Bjørge Sæther
bjorge@haha_itte.no
-------------------------------------
I'll not spend any money on American Software products
until armed forces are out of Iraq.


Relevant Pages

  • Re: The Zen nature of a Delphi database application
    ... I'm a database guy with very little Delphi experience so our skill ... often necessary for applications like web applications that can't ... had a function to move money from one account to another you'd only ...
    (comp.lang.pascal.delphi.misc)
  • Re: What does everyone else do for graphically displaying data?
    ... JDBC API reference cover to cover a couple of times, ... you bind a data grid to a database table so that when you edit the ... Why leave the advanced Delphi system and go to Java. ... basically because it makes the applications more capable of being ...
    (comp.lang.java.databases)
  • Re: More on Delphi Direct
    ... what kind of applications you are actually ... > What category do your projects fall into: ... A Chess database ... Webservice tools for Delphi and .NET ...
    (borland.public.delphi.non-technical)
  • Re: Delphi 2006 Upgrade
    ... Does abd ADO.NET provider for Interbase come with Delphi? ... How does a web server pull data from the ... database and pull down the datasets you need. ... Cold Fusion really is a very good solution, ...
    (borland.public.delphi.non-technical)
  • Re: sql membership provider setup
    ... "rodchar" wrote in message ... all my applications on the web server. ... > i just ran aspnet_regsql on my database server. ...
    (microsoft.public.dotnet.framework.aspnet)