• Post Reply Bookmark Topic Watch Topic
  • New Topic

responce.sendRedirect()  RSS feed

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using responce.sendRedirect() to redirect request from one jsp to another but i found that even after the request is redirected the parent jsp still continue executing
IS THIS IS A PROBLEM or IS THERE ANY WAY TO STOP THIS EXECUTION
 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using response.sendRedirect() to redirect request from one jsp to another but i found that even after the request is redirected the parent jsp still continue executing
IS THIS IS A PROBLEM or IS THERE ANY WAY TO STOP THIS EXECUTION
 
d frazier
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try
response.sendRedirect();
return 0;
it's cured what ails in most of my web apps.
 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Frazier ,
Thank you very much for your reply it was very helpfull to me
since service method return type is void so return 0; will give an error
just return; is ok
 
d frazier
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoops, my bad. Must have a memory leak.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!