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 the container?
What is a jpanel in java?
What are the components of j2ee?
What is application assembler?
What do you mean by the deployment descriptor?
What is bean factory, have you used xmlbean factory?
Which is latest technology in java?
Explain the four types of container that the j2ee specification defines
What is fatal error?
Which java technology is in demand?
What is server in j2ee?
How to invoke stored procedure in hibernate?
What is java full stack developer?
What is event and listener in java?
What is devops in java?