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 java technology stack?
How many types of modules is defined by j2ee specification?
What software is needed for java programming?
Define connection pooling?
Why is java called object oriented?
Which of the following are subclasses of java awt component?
Is tomcat a java ee?
What is document root?
What is meant by applet in java?
Is class a data type in java?
Where can I find java developers?
What is jradiobutton in java?
What is the use of method save()?
Is java ee and j2ee same?
Is advanced java and j2ee same?