<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Nitesh Ambuj</title>
        <link>http://blogs.eforceglobal.com/nambuj/Default.aspx</link>
        <description>Life @ eFORCE</description>
        <language>en-US</language>
        <copyright>Nitesh Ambuj</copyright>
        <managingEditor>nambuj@eforceglobal.com</managingEditor>
        <generator>Subtext Version 1.9.2.30</generator>
        <image>
            <title>Nitesh Ambuj</title>
            <url>http://blogs.eforceglobal.com/images/RSS2Image.gif</url>
            <link>http://blogs.eforceglobal.com/nambuj/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>First Step Towards Social Media Marketing !!</title>
            <link>http://blogs.eforceglobal.com/nambuj/archive/2010/01/06/542.aspx</link>
            <description>&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="2" face="Arial"&gt;Social Media Marketing is a new advertising methodology where you promote your business through different online social media channels. It’s not just limited to regular one way advertising technique but it also gives a chance to interact directly with your end user. It provides a flexibility to twist your marketing strategy as and when needed. &lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="2" face="Arial"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="2" face="Arial"&gt;To understand the impact it is going to make, let’s look at few studies: &lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="2" face="Arial"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 10pt 0.5in"&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;According to a 2009 &lt;/font&gt;&lt;/font&gt;&lt;a href="http://www.cmosurvey.org/"&gt;&lt;font color="#800080" size="2" face="Arial"&gt;CMO&lt;/font&gt;&lt;/a&gt;&lt;font size="2" face="Arial"&gt; Survey, currently 3.5% of marketing budgets is spent on social media marketing, with that figure predicted to grow to 6.1% within 12 months and 13.7% within five years. &lt;/font&gt;&lt;/div&gt;
&lt;div style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 10pt 0.5in"&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;According to the 2009 Digital Readiness Report, "Essential Online Public Relations and Marketing Skills," a majority of organizations are now contemplating hiring social media specialists.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 10pt 0.5in"&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;In a 2007 study by &lt;/font&gt;&lt;/font&gt;&lt;a href="http://www.emarketer.com/"&gt;&lt;font color="#800080" size="2" face="Arial"&gt;eMarketer&lt;/font&gt;&lt;/a&gt;&lt;font size="2" face="Arial"&gt;, commissioned by MySpace, it was predicted there would be a $1230 million spend on social network marketing.&lt;/font&gt;&lt;/div&gt;
&lt;div style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 10pt 0.5in"&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;In a 2008 study by &lt;/font&gt;&lt;/font&gt;&lt;a href="http://www.forrester.com/rb/research"&gt;&lt;font color="#800080" size="2" face="Arial"&gt;Forrester&lt;/font&gt;&lt;/a&gt;&lt;font size="2" face="Arial"&gt; Research evaluating the social network marketing programs, only one of the 16 major firms it had reviewed had received a passing grade, with half of the programs scoring a zero or lower.&lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="2" face="Arial"&gt;Social Media has become a golden marketing rush for many marketers across world. Real users talking about real products is an added advantage, though, tracking all the information floating in social media becomes little tough at times. When we tried to analyze real time data from Social Media we found many interesting outcomes. We can see many interesting trends – even popularity of brands, products can be measured over time. When we go little deep in user statistics we can find out the most talked about products, brands for a particular region and vice-versa. There are many such interesting patterns. &lt;/font&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="2" face="Arial"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="FONT-SIZE: 11pt"&gt;&lt;font size="2" face="Arial"&gt;We believe that before marketing a product / brand through social media, a marketer must analyze data floating on different social media platforms. Keeping this thought in mind we developed ContextMine. It is collecting data from 100+ social media websites. It also analyzes data on different parameters like, message, user, location, etc. To know more about this, please visit - &lt;/font&gt;&lt;a href="http://www.context.com/contextmine/index.html"&gt;&lt;font color="#800080" size="2" face="Arial"&gt;http://www.context.com/contextmine/index.html&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blogs.eforceglobal.com/nambuj/aggbug/542.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nitesh Ambuj</dc:creator>
            <guid>http://blogs.eforceglobal.com/nambuj/archive/2010/01/06/542.aspx</guid>
            <pubDate>Wed, 06 Jan 2010 07:07:29 GMT</pubDate>
            <wfw:comment>http://blogs.eforceglobal.com/nambuj/comments/542.aspx</wfw:comment>
            <comments>http://blogs.eforceglobal.com/nambuj/archive/2010/01/06/542.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.eforceglobal.com/nambuj/comments/commentRss/542.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.eforceglobal.com/nambuj/services/trackbacks/542.aspx</trackback:ping>
        </item>
        <item>
            <title>Introduction to Sling</title>
            <link>http://blogs.eforceglobal.com/nambuj/archive/2008/03/19/506.aspx</link>
            <description>&lt;p class="MsoNormal"&gt;Sling is a Web application framework based on &lt;a href="http://en.wikipedia.org/wiki/Representational_State_Transfer"&gt;REST&lt;/a&gt; principles that provides easy development of content-oriented applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Sling uses a &lt;a href="http://en.wikipedia.org/wiki/Content_repository_API_for_Java"&gt;JCR&lt;/a&gt; repository, such as Apache Jackrabbit, as its data store.&lt;o:p&gt;&lt;br /&gt;
&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;Sling started as an internal project of Day Management AG and has been contributed to the Apache Software Foundation and is currently undergoing incubation.&lt;br /&gt;
&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;The main purpose of Sling is to develop a content-centric Web Application framework for Java Content Repository (JCR) based data stores.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;u&gt;Getting started with Sling&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;u&gt;Pre-requisite&lt;/u&gt;&lt;br /&gt;
&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;
&lt;ol style="MARGIN-TOP: 0in" type="1"&gt;
    &lt;li class="MsoNormal"&gt;A &lt;a href="http://en.wikipedia.org/wiki/Subversion_(software)"&gt;Subversion&lt;/a&gt; client to get the Sling code &lt;/li&gt;
    &lt;li class="MsoNormal"&gt;A Java 5 JDK &lt;/li&gt;
    &lt;li class="MsoNormal"&gt;&lt;a href="http://maven.apache.org/"&gt;Maven&lt;/a&gt; ( &amp;gt; V 2.0.7) &lt;/li&gt;
    &lt;li class="MsoNormal"&gt;&lt;a href="http://curl.haxx.se/"&gt;cURL&lt;/a&gt; to create content &lt;/li&gt;
&lt;/ol&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;u&gt;Setup &amp;amp; Install&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;br /&gt;
&lt;/o:p&gt;Check out the code from Subversion repository:&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;a href="http://svn.apache.org/repos/asf/incubator/sling/trunk"&gt;http://svn.apache.org/repos/asf/incubator/sling/trunk&lt;/a&gt; sling &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;This creates a directory named sling under the current directory, with the completed Sling source code.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;In the top-level sling directory that was created by the svn command, run:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;mvn clean install&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;This builds and tests all the Sling modules that are required to run the Launchpad.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;If you don’t want to test the modules and just build them then you can run:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;mvn clean install -Dmaven.test.skip=true&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;u&gt;&lt;o:p&gt;&lt;span style="TEXT-DECORATION: none"&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;u&gt;Start the Launchpad &lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;Change to the launchpad/webapp directory under the top-level sling directory, and run:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;mvn jetty:run&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;
When server starts successfully it shows a message like this:
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f"&gt;
&lt;v:stroke joinstyle="miter" /&gt;
&lt;v:formulas&gt;
&lt;v:f eqn="if lineDrawn pixelLineWidth 0" /&gt;
&lt;v:f eqn="sum @0 1 0" /&gt;
&lt;v:f eqn="sum 0 0 @1" /&gt;
&lt;v:f eqn="prod @2 1 2" /&gt;
&lt;v:f eqn="prod @3 21600 pixelWidth" /&gt;
&lt;v:f eqn="prod @3 21600 pixelHeight" /&gt;
&lt;v:f eqn="sum @0 0 1" /&gt;
&lt;v:f eqn="prod @6 1 2" /&gt;
&lt;v:f eqn="prod @7 21600 pixelWidth" /&gt;
&lt;v:f eqn="sum @8 21600 0" /&gt;
&lt;v:f eqn="prod @7 21600 pixelHeight" /&gt;
&lt;v:f eqn="sum @10 21600 0" /&gt;
&lt;/v:formulas&gt;
&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" /&gt;
&lt;o:lock v:ext="edit" aspectratio="t" /&gt;
&lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:6in;
height:217.5pt'&gt;
&lt;v:imagedata src="file:///C:\DOCUME~1\nambuj\LOCALS~1\Temp\msohtml1\01\clip_image001.png"
o:title="" /&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img style="WIDTH: 593px; HEIGHT: 292px" height="334" alt="" width="664" src="/images/blogs_eforceglobal_com/nambuj/jetty-start.JPG" /&gt;&lt;!--[endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
 &lt;/o:p&gt;By default, Jetty is configured to run on port 8888.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;Look at &lt;a href="http://localhost:8888/sling"&gt;http://localhost:8888/sling&lt;/a&gt; where Sling displays the Sling Management Console page.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;Sling Management Console Page will look like this: &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/p&gt;
&lt;img style="WIDTH: 639px; HEIGHT: 384px" height="614" alt="" width="959" src="/images/blogs_eforceglobal_com/nambuj/sling-mgmt-cpnsole.JPG" /&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;In case of any error / issue, look into logs at below URL.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;../launchpad/webap/target/sling/logs/error.log&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;u&gt;Create some content&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;To create a content node (nodes are a JCR concept, a unit of storage) with cURL, use:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;curl -F"sling:resourceType=foo/bar" -F"title=some title" http://admin:admin@localhost:8888/content/mynode&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP: 0in" type="disc"&gt;
    &lt;li class="MsoNormal"&gt;&lt;em&gt;&lt;span style="FONT-SIZE: 10pt"&gt;the entire command should be in single line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;  &lt;/o:p&gt;&lt;br /&gt;
You can check the node at &lt;a href="http://localhost:8888/content/mynode"&gt;http://localhost:8888/content/mynode&lt;/a&gt;&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;It will show you a page like this: &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1027" type="#_x0000_t75"
style='width:425.25pt;height:153pt'&gt;
&lt;v:imagedata src="file:///C:\DOCUME~1\nambuj\LOCALS~1\Temp\msohtml1\01\clip_image005.png"
o:title="" /&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img height="204" alt="" width="567" src="/images/blogs_eforceglobal_com/nambuj/page.JPG" /&gt;&lt;!--[endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;You can see the node, content, resourcetype and other files at WebDAV client. Login with admin/admin. &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;WebDAV client URL: &lt;a href="http://admin:admin@localhost:8888/dav/default/"&gt;http://admin:admin@localhost:8888/dav/default/&lt;/a&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;It will show you a repository like this:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1028" type="#_x0000_t75"
style='width:6in;height:267.75pt'&gt;
&lt;v:imagedata src="file:///C:\DOCUME~1\nambuj\LOCALS~1\Temp\msohtml1\01\clip_image007.png"
o:title="" /&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img style="WIDTH: 640px; HEIGHT: 453px" height="462" alt="" width="691" src="/images/blogs_eforceglobal_com/nambuj/webdav.JPG" /&gt;&lt;!--[endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;You can use cURL to create directories.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;curl -X MKCOL &lt;a href="http://admin:admin@localhost:8888/dav/default/apps"&gt;http://admin:admin@localhost:8888/dav/default/apps&lt;/a&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;curl -X MKCOL &lt;a href="http://admin:admin@localhost:8888/dav/default/apps/foo"&gt;http://admin:admin@localhost:8888/dav/default/apps/foo&lt;/a&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;curl -X MKCOL &lt;a href="http://admin:admin@localhost:8888/dav/default/apps/foo/bar"&gt;http://admin:admin@localhost:8888/dav/default/apps/foo/bar&lt;/a&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;u&gt;Example 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
I will create a resourceType.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;I will create a content node.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;I will render the content through resourceType. &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;u&gt;Creating resourceType&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;Run below command&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;curl -X MKCOL &lt;a href="http://admin:admin@localhost:8888/dav/default/apps/example1"&gt;http://admin:admin@localhost:8888/dav/default/apps/example1&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
curl -X MKCOL &lt;a href="http://admin:admin@localhost:8888/dav/default/apps/example1/examplepage1"&gt;http://admin:admin@localhost:8888/dav/default/apps/example1/examplepage1&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;It will create a resourceType of example1/examplepage1&lt;br /&gt;
&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;u&gt;Create a HTML script which will use JCR data&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;u&gt;html.esp&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&amp;lt;html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;  &lt;/span&gt;&amp;lt;body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;    &lt;/span&gt;&amp;lt;h1&amp;gt;&amp;lt;%= currentNode.title %&amp;gt;&amp;lt;/h1&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;            &lt;/span&gt;&amp;lt;h2&amp;gt;This is testing for Sling:Resources&amp;lt;/h2&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;  &lt;/span&gt;&amp;lt;/body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;u&gt;Upload it to example1/examplepage1 resourceType&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;curl -X PUT -d @html.esp &lt;a href="http://admin:admin@localhost:8888/dav/default/apps/example1/examplepage1/html.esp"&gt;http://admin:admin@localhost:8888/dav/default/apps/example1/examplepage1/html.esp&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;u&gt;Create content based on resourceType example1/examplepage1&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;curl -F"sling:resourceType=example1/examplepage1" -F"title=Example Title" &lt;a href="http://admin:admin@localhost:8888/content/examplecontent"&gt;http://admin:admin@localhost:8888/content/examplecontent&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;u&gt;Render the content&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
You will see the content like this:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1029" type="#_x0000_t75"
style='width:431.25pt;height:269.25pt'&gt;
&lt;v:imagedata src="file:///C:\DOCUME~1\nambuj\LOCALS~1\Temp\msohtml1\01\clip_image009.png"
o:title="" /&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img style="WIDTH: 636px; HEIGHT: 389px" height="614" alt="" width="959" src="/images/blogs_eforceglobal_com/nambuj/example1.JPG" /&gt;&lt;!--[endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;If you want to include some other esp in your html.esp file then you can include in like this:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&amp;lt;html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;  &lt;/span&gt;&amp;lt;body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="BACKGROUND: aqua 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;    &lt;/span&gt;&amp;lt;div id=&lt;span class="code-quote"&gt;"header"&lt;/span&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="BACKGROUND: aqua 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;      &lt;/span&gt;&amp;lt;% sling.include(&lt;span class="code-quote"&gt;"/content/header"&lt;/span&gt;); %&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="BACKGROUND: aqua 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;    &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;    &lt;/span&gt;&amp;lt;h1&amp;gt;&amp;lt;%= currentNode.title %&amp;gt;&amp;lt;/h1&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&lt;span&gt;  &lt;/span&gt;&amp;lt;/body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="BACKGROUND: yellow 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP: 0in" type="disc"&gt;
    &lt;li class="MsoNormal"&gt;&lt;em&gt;&lt;span style="FONT-SIZE: 10pt"&gt;header.esp is a different esp file &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.25in"&gt;&lt;em&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;We still do not have any complete solution / example but there are some sample scripts and servlets in the sling/sample module in the source tree. Going forward we may use them to do some more R&amp;amp;D on this. &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;Below are few URLs which might be useful if you are looking for more information. &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;Detailed project status: &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;a href="http://incubator.apache.org/projects/sling.html"&gt;http://incubator.apache.org/projects/sling.html&lt;/a&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;br /&gt;
Detailed information on REST:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;a href="http://en.wikipedia.org/wiki/Representational_State_Transfer"&gt;http://en.wikipedia.org/wiki/Representational_State_Transfer&lt;/a&gt;&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;Detailed project information: &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;a href="http://incubator.apache.org/sling/site/project-information.html"&gt;http://incubator.apache.org/sling/site/project-information.html&lt;/a&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;br /&gt;
&lt;/o:p&gt;Documentation on Sling: &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;a href="http://incubator.apache.org/sling/site/documentation.html"&gt;http://incubator.apache.org/sling/site/documentation.html&lt;/a&gt;&lt;br /&gt;
&lt;/p&gt;&lt;img src="http://blogs.eforceglobal.com/nambuj/aggbug/506.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Nitesh Ambuj</dc:creator>
            <guid>http://blogs.eforceglobal.com/nambuj/archive/2008/03/19/506.aspx</guid>
            <pubDate>Wed, 19 Mar 2008 12:48:07 GMT</pubDate>
            <wfw:comment>http://blogs.eforceglobal.com/nambuj/comments/506.aspx</wfw:comment>
            <comments>http://blogs.eforceglobal.com/nambuj/archive/2008/03/19/506.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.eforceglobal.com/nambuj/comments/commentRss/506.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.eforceglobal.com/nambuj/services/trackbacks/506.aspx</trackback:ping>
        </item>
    </channel>
</rss>
