• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

requestdispatcher stuff

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic