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 concept of connection pooling?
What is java awt event?
How do I become an expert in java?
What does the web module contain?
What do you mean by the deployment descriptor?
What is architecture neutral in java?
What is java ee technologies?
Why is java important for internet?
Is string an object in java?
Who generates bytecode in java?
What are the components of j2ee applications?
What are java front end tools?
Which is latest technology in java?
What is the mvc on struts?
Is java a high level language?