It's not a secret anymore!*
The moose likes JSP and the fly likes Is it possible to share jsp pages between different applications deployed inside tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Is it possible to share jsp pages between different applications deployed inside tomcat" Watch "Is it possible to share jsp pages between different applications deployed inside tomcat" New topic
Author

Is it possible to share jsp pages between different applications deployed inside tomcat

Nikhil Chandran
Greenhorn

Joined: Sep 10, 2007
Posts: 23
Dear All,

I currently works with a java/jsp project. Tomcat is the web container I have some classes which can be used in common to all application deployed in this tomcat, which is included in shared/classes of tomcat.

Similarly I have some jsp pages which all applications can share. Is it possible for me to do this?

Kindly waiting for your suggestions..


Thanks in advance
NikhilChandran
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Not really.
Nikhil Chandran
Greenhorn

Joined: Sep 10, 2007
Posts: 23
Thanks for your reply.
So is the only option is to put duplicate jsps in all applications?. Do you have any other suggestions to tackle the situation..In my case there are more than 30 applications and if one of these common file changes I need to update it in all 30 applications.
Can you provide a solution for this ..

Thanks
NikhilChandran
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yes; keep the JSPs in a single repository and check it out into each of the applications. Modify only the main JSP repository copies.

Symbolic links may also work depending on your development/deployment environment.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Yes, this should be handled at build time, not run time.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nikhil Chandran
Greenhorn

Joined: Sep 10, 2007
Posts: 23
could you please provide me a little more explanation regarding how to maintain single repository of jsp s..Also can you tell me what you meant by Symbolic links ...

Thanks
NikhilChandran
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Do you not use source control?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to share jsp pages between different applications deployed inside tomcat
 
Similar Threads
java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/B2CConverter
Difference MVC2 vs MVC ???
One Tomcat container with multiple equal applications
Glassfish2: how can I make server use single class loader for several applications
Tomcat webapp