On Mon, Jul 28, 2008 at 9:42 AM, Bertrand Delacretaz
<[EMAIL PROTECTED]> wrote:
> On Fri, Jul 25, 2008 at 2:25 PM, Tobias Bocanegra
> <[EMAIL PROTECTED]> wrote:
>> ...i'm looking for a way to include a jsp script from within another but
>> respecting the resource type hierarchy....
>
> Just to make sure we're all on the same page: including the *source
> code* of a JSP script within another while taking the current request
> in consideration to select the included script is problematic, as JSP
> scripts are compiled in advance, not during request execution.
>
> So if you do something like
>  <sling:include script="foo.jsp"/>
> I guess what you want is the *output* of the script included in the
> current request's output, right?
fully agreed.

> As opposed to including foo.jsp's code in the current script, which
> would work in purely interpreted languages like javascript.
> Then, using the resourceType hierarchy to find the script might be
> what you're looking for.
precisely... thanks for the summary.

regards,
david

Reply via email to