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 java transaction api (jta)?
What is application configuration resource file?
Is core java and j2se same?
What is delegation?
What is filter chain?
Where can I find java developers?
Why is java robust?
What is a plugin in java?
Can I run seam in a j2ee environment?
What is source file in java?
What is the difference between java and j2ee?
Why awt is used in java?
What is create method?
What is attribute what is asant?
What is webservices in java?