What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().
Answer Posted / fateh
the main difference is that forward() do not save the
information while sending to the client but on the other
hand sendRedirect() saves the information while redirecting
to the other page.
Basically, sendRedirect() is used to redirect ot the error
page and forward() is a request dispatcher method to forward
request to the new page. So, if we are talking in this
context sendRedirect() is faster than forward(). According
to he above mentioned concept, forward() is faster than
sendRedirect() but if we are using sendRedirect() to send to
the error page it is faster.
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
explain the technologies that j2ee platform provides for developing components.
What is the latest framework in java?
What are the j2ee client types?
What is java ee server?
What is j2ee called now?
What is sandbox in java?
What are the main components of the j2ee application?
What is the difference between load() and get()?
Which of the following are subclasses of java awt component?
Is j2ee a programming language?
What is business logic?
What should a junior java developer know?
What is j2ee explain the component of j2ee application?
Who is java developer?
What are container services?