Hi,

here is the link,

http://cwiki.apache.org/confluence/display/SLING/Using+sling.include+in+JSP

janandith.

On Tue, Jul 15, 2008 at 12:52 AM, janandith jayawardena <[EMAIL PROTECTED]>
wrote:

> Hi Alexander,
>
> Thanks a lot. I've created a wiki page based on your reply on using
> sling:include in JSP.
> This uses the Discover sling in 15 minutes page. Also I've pointed to your
> wiki page for more reference about other scripting variables.
>
> janandith
>
>
>
>
> On Mon, Jul 14, 2008 at 4:03 PM, Alexander Klimetschek <[EMAIL PROTECTED]>
> wrote:
>
>> Hi Janandith,
>>
>> I recently started this wiki page as a reference for those things.
>> It's mostly about scripting variables, but jsp tags belong there as
>> well. That's why I included the sling:include tag already. And, by the
>> way, the TLD file (tag lib descriptor) is the reference for all the
>> available tags and also has some documentation [2]. It's all linked on
>> the page.
>>
>> Regarding your question if you can call the include from the code: you
>> have to put the <sling:defineObjects /> tag in the jsp and then you
>> get a "sling" variable just as in the other scripting languages and a
>> sling.include() should work then.
>>
>>
>> [1] http://cwiki.apache.org/confluence/display/SLING/Scripting+variables
>> [2]
>> http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/jsp-taglib/src/main/resources/META-INF/taglib.tld?view=markup
>>
>> Regards,
>> Alex
>>
>> On Mon, Jul 14, 2008 at 6:57 AM, janandith jayawardena
>> <[EMAIL PROTECTED]> wrote:
>> > Hi ,
>> >
>> > Thanks Bryce I found it.
>> > Is there a possibility to call this tag using ${sling.include(path)} in
>> a
>> > jsp script using
>> >
>> > <[EMAIL PROTECTED] prefix="sling" uri="some uri" %>
>> >
>> > janandith.
>> >
>> > On Mon, Jul 14, 2008 at 9:56 AM, Bryce Ewing <[EMAIL PROTECTED]> wrote:
>> >
>> >> Hi,
>> >>
>> >> Have a look in the org.apache.sling.scripting.jsp.taglib bundle.
>> >>  IncludeTagHandler is the sling:include tag class.
>> >>
>> >> Bryce
>> >>
>> >>
>> >> janandith jayawardena wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> Where can I find all the tags in sling like <sling:include> in sling
>> >>> source
>> >>> code.
>> >>>
>> >>>
>> >>> janandith
>> >>>
>> >>>
>> >>>
>> >>
>> >
>>
>>
>>
>> --
>> Alexander Klimetschek
>> [EMAIL PROTECTED]
>>
>
>

Reply via email to