mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-08 07:42:33 +01:00
create 19.12 branch
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2229 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
[[Property:title|EiffelWeb Basic Sample]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|da8f72cb-0ecd-464a-a558-cbf7d24301e3]]
|
||||
This sample shows how to retrieve and display information from a basic form on a web page.
|
||||
|
||||
|
||||
{{note|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. }}
|
||||
|
||||
|
||||
==Compiling==
|
||||
|
||||
To compile the example:
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\web\basic\''.
|
||||
* Choose ''web.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Click '''OK'''.
|
||||
|
||||
==Installing==
|
||||
|
||||
You should copy the file ''web_demo.exe'' in the ''cgi_bin'' directory of your web server and the file ''sample.html'' in a directory on the web server.
|
||||
|
||||
==Running==
|
||||
|
||||
To run the example, access the page ''sample.html'' that you copied on the web server with a web browser (typically <nowiki>''http://localhost/sample.html''</nowiki>). Fill in the text field with a username and click ''Submit''. 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.
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
This basic sample has just one class <eiffel>SAMPLE</eiffel> which inherits from <eiffel>CGI_INTERFACE. SAMPLE</eiffel> implements execute which retrieves the name entered in the form and creates a new <eiffel>HTML</eiffel> page with it.
|
||||
|
||||
|
||||
|
||||
See the EiffelWeb class reference for the class interfaces.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
[[Property:title|EiffelWeb Sample]]
|
||||
[[Property:weight|2]]
|
||||
[[Property:uuid|8d863248-ab60-bf4b-cfd0-f79c63309a1b]]
|
||||
The [[EiffelWeb Basic Sample|basic]] sample will get you started on the development of forms processing in Eiffel.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user