Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with RequestDispather  RSS feed

 
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: 65824
134
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!