Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nikhil Chandran
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really.
 
Nikhil Chandran
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this should be handled at build time, not run time.
 
Nikhil Chandran
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you not use source control?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic