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
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
Can you show the code for the images?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that is correct. how would you go about changing the relative url to include the host?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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