Thanks for your reply.
Let me explain with example. I have an application namely APP1 which is my own application:
http://www.server.com/myapp
in this app, I have a frame or DIV or anything to divide contents. A menu and a content. Menus contains some parameters and when user clicks on an item I build a request to another app namely APP2:
http://www.server.com/otherapp/store.jsp?q=value1
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:
<img src="/images/logo.gif" />
and
<a href="/pages/show.jsp" >Show</a>
since these paths are relative the browser adds the context path to them (
http://www.server.com/myapp)
I want to rewrite the image sources in a way yo refer to an absolute path which refers to real application like:
<img src="http://www.server.com/otherapp/images/logo.gif" />
but for the links, I dont want to change them because I already manage them with servlet filters.
how can I rewrite image sources?
thanks
Ravi Kiran Va wrote:the question is very confusing to me ( you tried to mention amnay things at a time)
Anyways as far as i understand , for your problem
I would prefer using Jsp Frames .