You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2013/03/05 12:41:05 UTC

svn commit: r853104 - in /websites/staging/sling/trunk/content: ./ documentation/getting-started/discover-sling-in-15-minutes.html

Author: buildbot
Date: Tue Mar  5 11:41:05 2013
New Revision: 853104

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Mar  5 11:41:05 2013
@@ -1 +1 @@
-1451535
+1452748

Modified: websites/staging/sling/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.html (original)
+++ websites/staging/sling/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.html Tue Mar  5 11:41:05 2013
@@ -105,8 +105,10 @@
 </ul>
 </div>
 <h2 id="see-also">See Also</h2>
-<p>Example applications and mini-applications for Sling can be found under <a href="http://svn.apache.org/repos/asf/sling/trunk/samples/">http://svn.apache.org/repos/asf/sling/trunk/samples/</a> (each application has a <code>README.txt</code> file, see these for more details).</p>
-<p>Once you grok the basic examples of this page, we recommend studying the <em>espblog</em> and <em>webloader</em> samples for more complete examples. The <em>javashell</em> sample is useful to play with JCR java code (or any java code, for that matter) interactively.</p>
+<p>More Sling samples can be found under 
+<a href="http://svn.apache.org/repos/asf/sling/trunk/samples/">http://svn.apache.org/repos/asf/sling/trunk/samples/</a></p>
+<p>Once you grok the basic examples of this page, we recommend studying the 
+<em>slingbucks</em> and <em>espblog</em> samples. Both have README files with more info.</p>
 <h2 id="prerequisites">Prerequisites</h2>
 <p>We'll start with the self-runnable jar from the Sling distribution, you only need a Java 5 JDK. Download the latest release from the Sling <a href="">Downloads</a> page or by clicking this link: <a href="http://www.apache.org/dyn/closer.cgi/sling/org.apache.sling.launchpad-6-standalone.jar">org.apache.sling.launchpad-6-standalone.jar</a>. Alternatively you can deploy the <a href="http://www.apache.org/dyn/closer.cgi/sling/org.apache.sling.launchpad-6.war">Sling Web application</a> into any decent Servlet Container such as Jetty or Tomcat or you can <a href="/documentation/development/getting-and-building-sling.html">build the current source yourself</a>.</p>
 <p>To show the simplicity of the REST-style approach taken by Sling the examples below will be using <a href="http://curl.haxx.se/">cURL</a>. Any HTTP client would do, but cURL is the easiest to document in a reproducible way.</p>
@@ -174,9 +176,10 @@ Sling provides a simple tool (an OSGi co
 <p>A script named <em>POST.esp</em> instead of <em>html.esp</em> would be called for a POST request, <em>DELETE.esp</em> for DELETE, <em>xml.esp</em> for a GET request with a <em>.xml</em> extension, etc. See <a href="/documentation/the-sling-engine/url-to-script-resolution.html">URL to Script Resolution</a> on the Sling wiki for more info.</p>
 <p>Servlets can also be easily "wired" to handle specific resource types, extensions, etc., in the simplest case by using SCR annotations in the servlet source code. Servlets and scripts are interchangeable when it comes to processing Sling requests.</p>
 <h2 id="what-next">What next?</h2>
-<p>These simple examples show how Sling uses scripts to work with JCR data, based on <em>sling:resourceType</em> or node types.</p>
-<p>There's much more to Sling of course - you'll find some additional simple examples below, and above in the <em>see also</em> section.</p>
-<p>We are working on debugging features to help trace the way Sling processes requests. Have a look at <a href="https://issues.apache.org/jira/browse/SLING-3">SLING-3</a> to see what's possible already.</p>
+<p>These simple examples show how Sling uses scripts to work with JCR data, based 
+on <em>sling:resourceType</em> or node types.</p>
+<p>There's much more to Sling of course - you'll find some additional simple examples below, as
+well as above in the <em>see also</em> section.</p>
 <h2 id="additional-examples">Additional examples</h2>
 <h3 id="let-sling-generate-the-path-of-a-newly-created-node">Let Sling generate the path of a newly created node.</h3>
 <p>To create a node with a unique path at a given location, end the URL of the POST request with <em>/</em>.</p>
@@ -251,7 +254,7 @@ Sling provides a simple tool (an OSGi co
 
 <p>The <a href="http://localhost:8080/content/mynode.html">http://localhost:8080/content/mynode.html</a>, once refreshed, now shows the blue headline and logo, and this layout also applies to any node created with <em>sling:resourceType=foo/bar</em>.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1345726 by fmeschbe on Sun, 3 Jun 2012 17:57:55 +0000
+        Rev. 1452739 by bdelacretaz on Tue, 5 Mar 2013 11:10:43 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project