Sling compiles JSPs on the fly. They are "just" a scripting language for Sling, so they work dynamically as any other supported scripting language, such as server-side javascript (esp), ruby, velocity or freemarker.
Regards, Alex On Sat, Jul 19, 2008 at 7:38 PM, Gilles Scokart <[EMAIL PROTECTED]> wrote: > Can the jsp be compiled on the fly? > All the examples I have seen were compiling them in maven. Do we have > both alternatives? > > > > 2008/7/19 janandith jayawardena <[EMAIL PROTECTED]>: >> Hi Langley , >> >>> So... >>> a) drag and drop testFile.jsp to dav://localhost:8080/myApps using my >>> webdav client >>> b) using firefox access http://localhost:8080/myApps/testFile.jsp >> as far as I know you can't >> >> As far as I know you cannot run (b) if your myApps folder is not under >> apps folder in webdav. >> >> also you must have a node of resourceType=myApps. >> >> This is because scripts are attached to a resource in sling. >> >> >> Then the url should change to >> http://localhost:8080/myApps/myApps.testFile.html . >> >> or you can rename testFile.jsp to html.jsp and use >> >> http://localhost:8080/myApps/myApps.html >> >> >> I think that should work. >> >> janandith. >> >> >> On Fri, Jul 18, 2008 at 7:12 PM, John Langley >> <[EMAIL PROTECTED]> wrote: >>> Hi Folks, >>> >>> I'm new to the list and the project but so far I'm very impressed by >>> the capabilities and potential! >>> >>> One of the things I need to do with the project is be able to >>> drop .jsp pages into the repository using webdav and see them run by >>> accessing them via a browser. >>> >>> So... >>> a) drag and drop testFile.jsp to dav://localhost:8080/myApps using my >>> webdav client >>> b) using firefox access http://localhost:8080/myApps/testFile.jsp >>> >>> This doesn't currently work. I ~know~ there's lots of jsp >>> capabilities and I'm in the process of understanding how resourceType >>> affects which scripts will be run. But it seems like the above use case >>> is a "hello world" one for new adopters of the project. >>> >>> Any help or pointers to rtfm material would be most welcome. >>> >>> Thanks in advance, >>> >>> -- Langley >>> >> > > > > -- > Gilles Scokart > -- Alexander Klimetschek [EMAIL PROTECTED]
