Then I obtain the result from above path and display it in content frame. Now this content contains images and links. but images refer to another path that doesn't exist in my application and they belong to APP2:
To be frank , i dont know the answer for your question
Why i asked for the links is that , how did you manage to read how many <href> tags are present in your Jsp page , so to append some url to the existing thing .
Anyway , i will proceed in this below mentioned way and hope for the best :
On to the Jsp / Html Page i will read all the Image Tgas using Dom API on to a body onload Java Script function and for each source attribute , i would add this http://www.server.com/myapp to the existing value .
Hope this could help you , but i am not sure if this is the way to do it .