Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request dispatcher include call failed

 
shweta kavungal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code that i am using in my servlet to pass from servlet to another servlet.

RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(address);
dispatcher.include(req,res);

The include call is failing with error "request dispatcher include call failed" can any one help please require help very urgently. Also the same code is working for on another server.

Please help !!
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the value of 'address', what is the URL of the servet it is being called from, and what is the location of the included file?
 
shweta kavungal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
address="/servlet/SOANewMainPage"
this is teh value of the address variable
thanks for quick response please let me know any further information required
 
Rishi Tandon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check whether you are able to access the FORWARDED page directly :
i.e. http://<host>/<web-context>/servlet/SOANewMainPage.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic