Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with RequestDispather

 
pramodh somashekara
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am applying style sheets and putting some images in my jsp pages. But when i forward from a servlet, I am getting following exceptions at server console

Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /theme/Master.css has not been defined

Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /graphics/banner.gif has not been defined

I am using following command to forward my request from servlet to jsp

getServletContext().getRequestDispatcher(url).forward(req,resp);

where url is to my next page.

The page is displaying data properly WITHOUT stylesheets or images.

Can you suggest how to rectify this?

Thanks in advance,
Pramodh
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you forming the URLs for the images and stle sheets on the page? In such an environment, you cannot use page-relative addressing.
[ October 10, 2006: Message edited by: Bear Bibeault ]
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!