| RTL reference|Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link To |
| ISAPI tutorial for Delphi developers | ||||||||||||||||
| Page 3: Getting started | ||||||||||||||||
Before we actually start programming, let's take a brief look at how to start an ISAPI application and what Delphi gives us.
To start a new ISAPI project, in the File menu, click on New and then choose Web Server Application.
Delphi will then present you with a choice of three types of web server applications. In our case we are going to choose the default (ISAPI/NSAPI).
Once you click on Ok, a new project will be opened. By default a new form is created. This form is the main starting point of your ISAPI application. It is a TWebModule. As mentioned in the previous chapter, the TWebModule consists of a TDataModule + TWebDispatcher. The first thing you will see is that, as with datamodules, the webmodule has very few properties and events. In particular, it consists of the following:
·Actions These are the WebActions. We will take a look at them later. ·AfterDispatch This event is fired after a call has been made to one of the Webactions WebActions: The heart of the application Every request made by the client (in our case normally a web browser) is a standard HTTP request. To make things easier, Delphi brings you the power of the TWebDispatcher. What this does is translate the HTTP request to a web action. Imagine the web action as an entry point to your DLL, like any other DLL you create and export the functions, web actions have a similar way of working.
·Default This sets the web action to the default one. When a HTTP request is made, the TWebDispatcher tries to match the MethodType and PathInfo to an action. If one is not found, then the default action will be used.
Next page > Web Actions > Page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
||||||||||||||||
All graphics (if any) in this feature created by Zarko Gajic.
| More Delphi |
|
· Learn another routine every day - RTL Quick Reference. · Download free source code applications and components. · Talk about Delphi Programming, real time. · Link to the Delphi Programming site from your Web pages. · Tutorials, articles, tech. tips by date: 2001|2000|1999|1998 or by TOPIC. |
|
· NEXT ARTICLE:
ADO Cursors - DB/10. Chapter ten of the free Delphi Database Course for beginners. How ADO uses cursors as a storage and access mechanism, and what you should do to choose the best cursor for your Delphi ADO application. |
| Stay informed with all new and interesting things about Delphi (for free). |
|
|
| Got some code to share? Got a question? Need some help? |

