/[eiffelstudio]/trunk/Delivery/xmldoc/libraries/web/samples/basic/index.xml
ViewVC logotype

Contents of /trunk/Delivery/xmldoc/libraries/web/samples/basic/index.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63849 - (show annotations)
Mon Sep 25 19:25:28 2006 UTC (13 years, 3 months ago) by patrickr
File MIME type: text/xml
File size: 2504 byte(s)
removed version numbers from library index page
updated sample documentations of most libraries
1 <document output="studio" title="EiffelWeb Sample">
2 <meta_data/>
3 <paragraph>
4 <paragraph> This sample shows how to retrieve and display information from a basic form on a web page.</paragraph>
5 <paragraph>
6 <note>
7 <bold>Note:</bold> This sample requires a web server supporting CGI in order to be run. Both the Internet Information Services web server from Microsoft and the GNU Apache server may be used.
8 <heading>
9 <size>2</size>Compiling
10 </heading>
11 <paragraph> To compile the example: </paragraph>
12 <list ordered="false">
13 <item>Launch EiffelStudio. </item>
14 <item>Click <bold>Add project</bold></item>
15 <item>Browse to
16 <italic>$ISE_EIFFEL\examples\web\basic\</italic>.
17 </item>
18 <item>Choose <italic>web.ecf</italic></item>
19 <item>Choose the location where the project will be compiled, by default the same directory containing the configuration file. </item>
20 <item>Click
21 <bold>OK</bold>.
22 </item>
23 </list>
24 <paragraph>
25 <heading>
26 <size>2</size>Installing
27 </heading>
28 <paragraph>You should copy the file
29 <italic>web_demo.exe</italic> in the
30 <italic>cgi_bin</italic> directory of your web server and the file
31 <italic>sample.html</italic> in a directory on the web server.
32 </paragraph>
33 <heading>
34 <size>2</size> Running
35 </heading>
36 <paragraph> To run the example, access the page
37 <italic>sample.html</italic> that you copied on the web server with a web browser (typically
38 <italic> http://localhost/sample.html</italic>). Fill in the text field with a username and click
39 <italic>Submit</italic>. You should see a page displaying the name you just entered. Although not earth-shattering, this sample shows the basis for building more complex forms processing in Eiffel.
40 </paragraph>
41 <heading>
42 <size>2</size>Under the Hood
43 </heading>
44 <paragraph> This basic sample has just one class <class_name>SAMPLE</class_name> which inherits from <class_name>CGI_INTERFACE. SAMPLE</class_name> implements execute which retrieves the name entered in the form and creates a new <class_name>HTML</class_name> page with it. </paragraph>
45 <paragraph> </paragraph>
46 <paragraph> See the
47 <link>
48 <label>reference</label>
49 </link> for the class interfaces.
50 </paragraph>
51 </paragraph>
52 </note>
53 </paragraph>
54 </paragraph></document>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23