Yes - but only using a not well supported feature.
You need to ask the servlet context for the other context, then
ask for a request dispatcher from that context and finally
do an include on that request dispatcher.
My reading of the spec says that tomcats handling of getContext
is broken - last time I looked (many months ago), so you could
have portability problems with this mechanism.
cheers
Julian Gosnell wrote:
> You might get an answer to this on jetty-discuss - I
> have cross-posted.
>
> Jules
>
> --- Michael Oswall <[EMAIL PROTECTED]> wrote: >
> Hello JBoss(+Tomcat/Jetty) Users
>
>>I have a large j2ee project that divides nicely into
>>a bunch of small
>>modules that do not need to know about each other.
>>There is one main HTTP
>>entry point, that is, one primary Request Handling
>>servlet in a small web
>>app that uses the parameters of the request to
>>determine which modules need
>>to be included to service the request.
>>
>>Given that, if I have an enterprise application with
>>an application.xml file
>>looking like this...
>>
>><application>
>> <display-name>Application With Two Web
>>Apps</display-name>
>> <module>
>> <ejb>app_module_N.jar</ejb>
>> </module>
>> <module>
>> <web>
>> <web-uri>app_module_N.war</web-uri>
>> <context-root>/module_N</context-root>
>> </web>
>> </module>
>> <module>
>> <web>
>> <web-uri>request_handler.war</web-uri>
>> <context-root>/handler</context-root>
>> </web>
>> </module>
>></application>
>>
>>Then is there any way I can make the
>>RequestHandlerSerlvet in the
>>request_handler.war be able to "include" a JSP page
>>found in module_N.war.
>>In other words, is it possible for a servlet/jsp in
>>one web app context to
>>include a JSP in another web app context?
>>
>>Thanks, Oz
>>
>>
>>_______________________________________________
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>
>>
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> For the latest information about Jetty, please see http://jetty.mortbay.
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
--
Greg Wilkins<[EMAIL PROTECTED]> GB Phone: +44-(0)7092063462
Mort Bay Consulting Australia and UK. Mbl Phone: +44-(0)7775534369
http://www.mortbay.com AU Phone: +61-(0)2 99772395
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user