1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>Anatomy of a WebStack Application</title> 5 <meta name="generator" 6 content="amaya 8.1a, see http://www.w3.org/Amaya/" /> 7 <link href="styles.css" rel="stylesheet" type="text/css" /> 8 </head> 9 <body> 10 <h1>Anatomy 11 of a WebStack 12 Application</h1> 13 <p>The simplest way to think of a 14 Web application is as just some code which 15 sits on a server and is sent messages - specifically HTTP requests - to 16 which it must respond by writing out messages to send back - 17 specifically HTTP responses. When using WebStack, we think of the 18 situation in terms of the following components:</p> 19 <table style="text-align: left; margin-left: auto; margin-right: auto;" 20 class="layers" border="1" cellpadding="5" cellspacing="0"> 21 <tbody> 22 <tr> 23 <th 24 style="text-align: center; background-color: rgb(255, 102, 102); vertical-align: middle;">Application 25 <span class="explanation">- 26 The application is described in this part of the documentation.</span> </th> 27 </tr> 28 <tr> 29 <th 30 style="background-color: rgb(255, 255, 102); text-align: center; vertical-align: middle;">Adapter 31 <span class="explanation">- 32 Adapters are explained in the <a href="deploying.html">deployment 33 documentation</a>.</span> </th> 34 </tr> 35 <tr> 36 <th 37 style="background-color: rgb(153, 153, 255); text-align: center; vertical-align: middle;">Server 38 environment <span class="explanation">- 39 Server environments are covered in the <a href="deploying.html">deployment 40 documentation</a>.</span> </th> 41 </tr> 42 </tbody> 43 </table> 44 <p>To get an application up and 45 running, this is what you have to do:</p> 46 <ol> 47 <li>Write some application code 48 which uses the WebStack API.</li> 49 <li>Write some simple adapter 50 code - this code "glues" the application to the environment that you 51 want to use.</li> 52 </ol> 53 <p>In this part of the 54 documentation, we will ignore the second 55 activity (it is covered in <a href="deploying.html">"Deploying a 56 WebStack 57 Application"</a>) and concentrate on the more important task of 58 defining an application's functionality with <a 59 href="simple-example.html">"A Very Simple Example"</a>.</p> 60 </body> 61 </html>