Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
JSP
return after jsp:forward action
Brusk Baran
Ranch Hand
Posts: 132
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
We must explicitly use return; after a call to
jsp
:forward. am I wrong?
pageContext.getOut().clearBuffer(); <jsp:forward ...> <jsp :-P aram name="n1" value="v1" /> </jsp:forward> I mean, we are still inside the [B]service()[/B] method of a jsp-servlet so we must [B]return() B]
kind regards;
Brusk Baran
Andres Gonzalez
Ranch Hand
Posts: 1561
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Servlets - Request - Threads question?
Unable to use forward option with parameters
Request Attributes
RequestDispatcher forward doubt?
SCWCD hints
More...