• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

requestdispatcher stuff  RSS feed

 
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 ]
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!