Creating the IWP ProjectLast Updated: 9/22/2008 | |
| Sections above here: Home » Development » Page Mode | |
|
Sections below here: Topics in this section: |
IWP pages work with any type of Delphi (CBuilder or Kylix) internet framework you want to use (like all PageMode applications). You can use WebSnap or WebBroker for example. The first step is to create a new Web Server application. Once you have the WebModule, you need to drop 2 components on the form. The first one, like all PageMode applications with IW is the IWModuleController. The second one is either a TIWPageController or a TIWPageController32 depending on whether you are creating a 4.0 or a 3.2 project. Obviously you could combine both types of applications in one project by dropping one of each component. ![]() The TIWPageController is a simple yet powerful component. There are no events and only 2 important properties. As we will see later on, this component handles are the necessary tasks to find the corresponding IWP page, parse the contents, generate the form and return the result to the browser. There is no need for a TIWTemplateProcessor or a TIWPageProducer. These are both inherent to the component and are transparently used. The only required properties are reflected in the figure below: The TagType property indicates what type of tag you will be using in your IWP pages. By default this is the ttIntraWeb tag (which is represented by enclosing control names in ). You can also set this to Borland style tags. The other relevant property is the ApplicationURL which specifies the virtual URL path to your application. So for example, if your script directory in your web server is /scripts and your project is called project1.dll, then this property would take the value /scripts/project1.dll/ (note the prefixing and suffixing of the / character). That is all you need to do with these properties. The next step is to save the project and optionally set the output path to that of your physical scripts directory location. Once this is done, we can move on to configuring the server to work with IWP and then continue with the design of our pages. |
(C) 2002-2009 - Atozed Software Ltd. | |