Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sometimes RequestDispatcher is not forwarding URL  RSS feed

 
Thayaparan Ponnampalam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The below jsp code is not forwarding to the given url jsp page sometimes.
It's forwarding same page its self.
I'm using Oracle OC4J Server.
JSP Code


Please help me.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that your JSP is throwing an IllegalStateException due to the response output stream being flushed. See the RequestDispatcher JavaDocs,

Bill
 
Thayaparan Ponnampalam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. There is a less posiblity to give IllegalStateException because dispatcher.forward is last line in my JSP. Anyway, I have added return; statement after dispatcher.forward. I need to wait to check whether it's working because it occurs sometimes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!