Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

return after jsp:forward action

 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We must explicitly use return; after a call to jsp:forward. am I wrong?

kind regards;
Brusk Baran
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have to. as long as you don't write anything to the response, it's ok. But in many cases developers write return; after forwarding.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic