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
How will you explain load() and get() methods?
What is difference between j2ee and java?
What is meant by j2ee?
Why is java robust?
What are the four components of j2ee application?
What is java awt event?
What is core java and j2ee?
Where is java used?
What is B2B?
What is application client?
What is a java developer?
What do you understand by business logic?
Define the struts in the j2ee framework?
What is the difference between java and core java?
What are j2ee components?