Link to home
Start Free TrialLog in
Avatar of bqchristie
bqchristie

asked on

fixing relative paths when including external html in a JSP page

Hello,

I use <c:import url="whatever"/>  to include some external html in my JSP page.  It all works great except that the image URLS do not show up since they are realtive to teh external site.   Any solutions to work around this?

Thanks
Avatar of tbboyett
tbboyett
Flag of United States of America image

Can you show the code for the images?
Avatar of bqchristie
bqchristie

ASKER

it is coming from another server so i cannot gaurantee what they will look like but they are html image tags i.e. <img src="/images/something.jpg"/>

ASKER CERTIFIED SOLUTION
Avatar of tbboyett
tbboyett
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that is correct.   how would you go about changing the relative url to include the host?
SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

Thanks for your replies but I think the question has been lost somewhere....

I have a bunch of html that includes several urls.  I need to replace the relative path with an absolute path.   Is there a regular expression or something that I could  use to do this.

Cheers
Bruce