What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().
Answer Posted / guest
Both senredirect and forward metods are used to forward the
request to another resourse
but
1)the request dispatcher() is used when we want to redirect
the client requestto some other resourse (ie:out of context)
or whenver we want to redirect errors
where as
use forward()when we sending a page that is within in the
same site
2)forward() are executed on the serverside but send redirect
()are on the client side
jawahar
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
How long does it take to master java?
What is isv?
What are java front end tools?
What is the description for expression element?
What is java 2 platform, enterprise edition (j2ee)?
What is java web technologies?
What is api in j2ee?
What is j2ee specification?
How do you compile java?
What is a plugin in java?
What is callback methods?
What is javac written?
Why is java called technology?
What are the four components of j2ee application?
Why frameworks are used in java?