Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue in including image in a html from another server

 
nandy desikan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii,

I load a jsp from my application. When this jsp loads, I include static html from another application(different context root). This html is loading fine. But the call to images in this static html is through a relative path corresponding to the other application.

My problem is,the images are not loaded because of the relative path. How do I replace the relative path in this static html with the absolute path so that the images are loaded?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you including a resource from another application? That's something I would never do. Can you not make this a build-time shared resource rather than a run-time shared resourse?
 
nandy desikan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I do that? Please advice...I am pretty new to this...
Appreciate your response regarding this....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you building these applications? Is the source in a source control system?

The best way to share resources between different apps is to share the code at build-time, rather than to try and create run-time dependencies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic