This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Sharing pages across webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Sharing pages across webapps" Watch "Sharing pages across webapps" New topic

Sharing pages across webapps

David Duran
Ranch Hand

Joined: Feb 11, 2002
Posts: 122
Does anyone know if this is possible? Right now, my directory structure under ROOT is:

All three APP directories reference header/footer files in SHARED.
I want to separate the APP directories into their own separate webapp contexts without having to duplicate the SHARED directory in each WEBAPP directory. Is this possible?
What I want is the below, some kind of directory structure that allows all three APPS to be their own webapp but with the SHARED code centralized in one place.

The only way I know how (what I DON'T want) is to duplicate the same directory under each webapp.
I agree. Here's the link:
subject: Sharing pages across webapps
It's not a secret anymore!