This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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: 64970
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: 64970
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