• Post Reply Bookmark Topic Watch Topic
  • New Topic

requestdispatcher stuff  RSS feed

 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey folks,
i have a servlet wich forwards a request to the jsp site (getRequestDispatcher("...").forward(..,..).
the problem is that the jsp's site background doesn't downoad. it downloads ok when i load the jsp page in my browser. i still see the html command pointering the background file in the source of the jsp page after the download...
and yes,it works fine if i try to use sendRedirect from the servlet...
can't understand what's the problem. did anyone expect it earlier?
i use ie6,tomcat 4.0..
thanks
[ July 31, 2002: Message edited by: Asher Tarno ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I bet the href for the image is not an absolute one. All the browser has to go on when it requests a resource such as an image, sound file, applet class, whatever, is the original URL that fetched the page. In your case this is the servlet. You can:
1. Use an absolute URL for the image
- or -
2. Establish a "base" URL in the head area of the page using the base tag. Then you can address resources relative to this base.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!