What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().
Answer Posted / bindhu solomon
When we use forward, then servlet container forwards all
request to the target page. but in the case sendRedirect,
container makes a new request to the target Page.
So in forward , url link doesn't change but in sendRedirect
url line change . Because container makes a new request,
sendRedirect is much slower than forward.
If a target page has no relation with current
page , then we can use sendRedirect(I think so....)
| Is This Answer Correct ? | 35 Yes | 9 No |
Post New Answer View All Answers
What is the name of java compiler?
What is a jbutton in java?
What is component contract?
What is credentials?
What is B2B?
What is included in j2ee?
What is source file in java?
Is j2ee a language or framework?
What is interpreter in java?
On which platform j2ee is based?
What is isv?
What are the components of the java platform?
Why awt is used in java?
What is a java ee container?
Difference between load and get method?