File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
use of "sendredirect" and "forward" method in same page
Joined: Sep 10, 2005
Sep 13, 2005 11:05:00
If we use sendredirect like that :
int i = 2; //2
out.println("Value of i =" +i); //3
Then Line (2) & (3) are executed or after line (1) this page is redirected
to other page ?
Can we use both "sendredirect" and "forward" in same page ?
Thanks & Regards:
Joined: Sep 11, 2005
Sep 13, 2005 12:25:00
The lines 2 & 3 will get executed, but nothing will be printed on the response object. You will see the redirected page on the browser.
You cannot forward and redirect from the same
. It will throw
keep smilin :: sravan<br /><a href="http://sravanpens.blogspot.com" target="_blank" rel="nofollow">I scribble here</a>
Don't get me started about those stupid
subject: use of "sendredirect" and "forward" method in same page
jsp:forward and sendredirect
Differences btwn (response.sendRedirect) and (Requestdispatcher.forward)
images display problem with dispatcher.forward()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014