This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request dispatcher include call failed  RSS feed

 
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 !!
 
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
 
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.
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!