aspose file tools
The moose likes Servlets and the fly likes access webapp from another webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "access webapp from another webapp" Watch "access webapp from another webapp" New topic
Author

access webapp from another webapp

Hans Sponger
Greenhorn

Joined: Apr 08, 2004
Posts: 3
I have an application that dynamically creates different user accounts. Each user's jsp files must reference some template jsp files. For example, the file /hans/aboutme.jsp would include a template like this:
<jsp:include page="/templates/aboutme.jsp" />
The only way I know how to do this is to create a new directory for each user, because if I make a .war for each user and place in webapps, then I get a java.io.FileNotFoundException because the templates is in the root directory, not in the particular user's webapp directory.
Is there any solutions other than creating new directories for each user.
Thanks, Hans live216@yahoo.com
 
rocket mass heater kickstarter
 
subject: access webapp from another webapp