What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().
Answer Posted / vinit sharma
Hello i am vinit and according to me,
Both methods are use to transfer form one web component to
another web component.
In case of forward () the same request (that have client
information) is passed from server side to the another page
(this another page should be in the same container (Web
Server)), due to URL remains same.
While in sendRedirect () a new request (due to
loss the previous request information) is generated from
client side to another page (this another page can be in
the same OR in different container (Web Server)), due to
URL becomes change.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is empty tag?
What is a plugin in java?
What is basic authentication?
What is single tier architecture in java?
What are java front end tools?
What is java ee sdk?
What does enterprise javabeans module contain?
Is java a tool?
How many types of component events are in java?
What is Connector architecture?
What is application client module?
what is direct link to download swing ebook,applet,ejb,core java
What is api in j2ee?
What is j2ee api?
What is mean by j2ee?