On Fri, Dec 3, 2010 at 7:50 AM, Unmesh Joshi <[email protected]> wrote: > I am trying to learn apache sling and have following questions to start with > > I assume that resource resolvers need to be added as OSGI bundles. > Where does the view part (JSPs etc) fit in? I am not clear on few > things yet. > > 1. One a resource is resolved by resource resolver. How the final > representation (HTML in our case) is rendered? Where do you place > actual JSPs etc?
They are placed in the resource tree (either in the JCR repository) or as bundle resources, under /apps. The resource type of the requested resource is used to determine which script/servlet to use for rendering. See the Request Handling section at http://sling.apache.org/site/the-sling-engine.html, and especially the "Servlets and Scripts" page. > 2. If I have to submit some information.. How is POST handled? By default POST requests are handled by the SingPostServlet, which takes care of persisting the changes. See http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html > 3. How are Day CQ and Sling related? Because we are unable to get dev > licenses for Day CQ. Is it worth doing spikes on Apache sling and > assume that the same thing will fit in Day CQ? I don't work for Day, so I'll leave this to someone who can better answer your question. > Do we have any sample source code that you can share for these things? -- Vidar S. Ramdal <[email protected]> - http://www.idium.no Sommerrogata 13-15, N-0255 Oslo, Norway + 47 22 00 84 00 / +47 22 00 84 76 Quando omni flunkus moritatus!
