On Tue, May 11, 2010 at 4:30 PM, Federico Paparoni <[email protected]> wrote: > Hi all, > > I read the documentation available on the Sling website and tested the basic > examples. > Everything works, but now I want to create something like espblog, to better > examine Sling features. > I created a maven project and deployed it using the Felix console but it > doesn't work. > In this example I created some jsp but when i try to call them, the browser > downloads it. > In the log I can see > > 11.05.2010 16:18:10.516 *INFO* [FelixDispatchQueue] slingblog BundleEvent > INSTALLED > 11.05.2010 16:18:10.516 *INFO* [FelixDispatchQueue] slingblog BundleEvent > RESOLVED > 11.05.2010 16:18:10.548 *INFO* [Background Install > C:\DOCUME~1\a155876\IMPOST~1\Temp\install1474139204158110668.tmp] > org.apache.sling.jcr.co > ntentloader.internal.ContentLoaderService createFile: Cannot find content > type for created.html.jsp, using application/octet-stream > 11.05.2010 16:18:10.704 *INFO* [Background Install > C:\DOCUME~1\a155876\IMPOST~1\Temp\install1474139204158110668.tmp] > org.apache.sling.jcr.co > ntentloader.internal.ContentLoaderService createFile: Cannot find content > type for home.html.jsp, using application/octet-stream > 11.05.2010 16:18:10.735 *INFO* [Background Install > C:\DOCUME~1\a155876\IMPOST~1\Temp\install1474139204158110668.tmp] > org.apache.sling.jcr.co > ntentloader.internal.ContentLoaderService createFile: Cannot find content > type for new.html.jsp, using application/octet-stream > 11.05.2010 16:18:10.986 *INFO* [FelixDispatchQueue] slingblog BundleEvent > STARTED > > How can I tell Sling these are JSP?
I don't think you have to. Those messages are from the content loader, which is the component responsible for registering the files in the repository. That does not affect script resolution later. You shouldn't request the JSP files directly from the browser, but rather request a resource (like a JCR node) which has it's sling:resourceType property set to correspond to a script. -- Vidar S. Ramdal <[email protected]> - http://www.idium.no Sommerrogata 13-15, N-0255 Oslo, Norway + 47 22 00 84 00 / +47 21 531941, ext 2070
