You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/01/09 22:59:51 UTC

svn commit: r733166 - in /incubator/click/trunk/click/documentation/docs: configuration.html introduction.html

Author: sabob
Date: Fri Jan  9 13:59:51 2009
New Revision: 733166

URL: http://svn.apache.org/viewvc?rev=733166&view=rev
Log:
updated docs

Modified:
    incubator/click/trunk/click/documentation/docs/configuration.html
    incubator/click/trunk/click/documentation/docs/introduction.html

Modified: incubator/click/trunk/click/documentation/docs/configuration.html
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/docs/configuration.html?rev=733166&r1=733165&r2=733166&view=diff
==============================================================================
--- incubator/click/trunk/click/documentation/docs/configuration.html (original)
+++ incubator/click/trunk/click/documentation/docs/configuration.html Fri Jan  9 13:59:51 2009
@@ -78,7 +78,7 @@
 For a Click web application to function the 
 <a target="topic" href="click-api/org/apache/click/ClickServlet.html">ClickServlet</a>
 must be configured in the web application's <tt>/WEB-INF/web.xml</tt> file. 
-A simple web application which maps all <tt>*.htm</tt> requests to a ClickServlet 
+A basic web application which maps all <tt>*.htm</tt> requests to a ClickServlet
 is provided below.
 
 <pre class="codeConfig">
@@ -137,7 +137,7 @@
 which can be used as a quick reference when configuring Click.
  
 <p/>
-A simple Click app config file is provided below:
+A basic Click app config file is provided below:
 
 <pre class="prettyprint">
 &lt;click-app&gt; 

Modified: incubator/click/trunk/click/documentation/docs/introduction.html
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/docs/introduction.html?rev=733166&r1=733165&r2=733166&view=diff
==============================================================================
--- incubator/click/trunk/click/documentation/docs/introduction.html (original)
+++ incubator/click/trunk/click/documentation/docs/introduction.html Fri Jan  9 13:59:51 2009
@@ -74,6 +74,9 @@
   </li>
 </ol>
 
+These examples are available online at <a class="external" target="_blank" href="http://www.avoka.com/click-examples/">http://www.avoka.com/click-examples/</a>
+under the menu "Intro Examples".
+
 <p>&nbsp;</p>
 
 <a name="hello-world" class="heading"></a><h2>1.&nbsp; Hello World Example</h2>
@@ -94,7 +97,7 @@
 } 
 </pre>
 
-Next we would have a page template <span class="blue">hello-world.htm</span>:
+Next we have a page template <span class="blue">hello-world.htm</span>:
 
 <pre class="codeHtml">
 &lt;html&gt;
@@ -108,9 +111,16 @@
 &lt;/html&gt; 
 </pre>
 
-And finally we have a <tt>click.xml</tt> configuration file which tells our Click 
-application to map <span class="blue">hello-world.htm</span>
-requests to our <tt>HelloWorld</tt> page class.
+<p/>
+Click is smart enough to figure out that the <tt>HelloWorld</tt> page class maps
+to the template <span class="blue">hello-world.htm</span>. We only have to inform
+Click of the <tt>package</tt> of the HelloWorld class, in this case <tt>examples.page</tt>.
+
+<p/>
+We do that through the
+<a target='topic' href="configuration.html#application-configuration">click.xml</a>
+configuration file which tells Click to map <span class="blue">hello-world.htm</span>
+requests to our <tt>examples.page.HelloWorld</tt> page class.
 
 <pre class="codeConfig">
 &lt;click-app&gt;