Inside a JSP, do something like this:
<snip>
ServletContext targetCtx = application.getContext("otherwebapp");
RequestDispatcher targetDispatcher =
getRequestDispatcher("/pleaseincludeme.jsp");
targetDispatcher.include(request, response); // or forward(), whatever you
need
</snap>
I don't know if the "c" tag library you use supports that, but that's how
the servlet API works. The request dispatcher is always per webapp =
servlet context and doesn't know about other webapps.
Regards,
Alex
On 13.04.11 14:55, "tim tam" <[email protected]> wrote:
>I am sorry I dont quite grok what you are saying...
>
>On Wed, Apr 13, 2011 at 2:40 PM, Alexander Klimetschek
><[email protected]>wrote:
>
>> On 13.04.11 14:30, "tim tam" <[email protected]> wrote:
>>
>> >Wow- that is a biggie, for me at least.
>> >Let me try to verify this- to be sure
>> >
>> >If I have this structure:
>> >A.ear-->b.war (nonslingwebapp)--->pleaseincludeme.jsp
>> > -->sling webapp (in my case day cq launchpad)-->someinclude.jsp
>> >(needs to include pleaseincludeme.jsp, with c:import or some custom
>>tags
>> >from 3rd party lib)
>>
>> In this case you need to get the request dispatcher from the other
>>webapp
>> (b.war) to include the paths/jsps it covers (such as
>>pleaseincludeme.jsp).
>>
>> Regards,
>> Alex
>>
>> --
>> Alexander Klimetschek
>> Developer // Adobe (Day) // Berlin - Basel
>>
>>
>>
>>
>>
>
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel