but site1 dont have folder images but it is at site2
i dont want to change my <img> tags to <img src="http://www.site2.com/images/myimage1.jpg"> or to something else because i don't want to show any one that the images are coming from some other website.
so i have a created servlet named ImageServlet and its configuration in web.xml is like this :
i have mapped ImageServlet to jpg and gif files because i dont want to change <img> tags which more than 100 times in jsp pages in site1
so every request to jpg or gif files goes to ImageServlet