Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

access webapp from another webapp  RSS feed

 
Hans Sponger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hans, please do not cross-post the same question in multiple forums. It wastes peoples' time when multiple redundant conversations take place. Please conduct any discussion here.
bear
JSP Forum Bartender
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!