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
What is included in j2ee?
Is tomcat a java ee?
What is asant?
What is deployment descriptor?
How many java languages are there?
Is java more difficult than c++?
What is form-based authentication?
What is java awt event?
what is direct link to download swing ebook,applet,ejb,core java
Is java procedural or object oriented?
What is event in java?
What is cmp in j2ee?
What is the build file?
What is javamail?
What is j2ee component?