aspose file tools*
The moose likes JSP and the fly likes Including a resource from another web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Including a resource from another web application" Watch "Including a resource from another web application" New topic
Author

Including a resource from another web application

Joshua White
Ranch Hand

Joined: Jun 04, 2001
Posts: 97
Hello all,
I have two web apps, webapp1 & webapp2.
I need to include a jsp resource from webapp2 from webapp1. I receive a file not found exception when using the request dispatcher. Any sugggestions?
Regards,
Joshua
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

You can't. RequestDispatcher is limited to the current app context.
What type of resource are you trying to include? (may help with suggestions for alternate mechanisms).
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Including a resource from another web application
 
Similar Threads
How to get another webapp's jndi object from local?
how to create a shared project/libs use by different web apps
Sharing HttpSession across multiple web applications
URL rewriting is not working
How to pass Session object between two web apps