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 developer job description?
What is java listener?
What is included in j2ee?
What is data?
What is the difference between java and core java?
What is the J2EE module?
What is caller principal?
How do you compile java?
how to run servlet program between two computer through internet ?
What does application client module contain?
What is the best java course?
What is sandbox in java?
I’m new to WebLogic Does anyone knows how to Deploy Application using
Difference between load and get method?
Why java is called robust and secure?