This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes return after jsp:forward action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "return after jsp:forward action" Watch "return after jsp:forward action" New topic
Author

return after jsp:forward action

Brusk Baran
Ranch Hand

Joined: Nov 15, 2001
Posts: 132
We must explicitly use return; after a call to jsp:forward. am I wrong?

kind regards;
Brusk Baran
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
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.


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: return after jsp:forward action
 
Similar Threads
Servlets - Request - Threads question?
RequestDispatcher forward doubt?
SCWCD hints
Request Attributes
Unable to use forward option with parameters