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 are java front end tools?
What is deployer?
What is multi tier architecture in j2ee?
What is jradiobutton in java?
Why java is called portable language?
What is jta and jts?
What is java 2 platform, micro edition (j2me)?
Define hashtable in j2ee?
Is java ee and j2ee same?
What is declaration?
Which is best eclipse for java?
What is event and listener in java?
Is java procedural or object oriented?
What is jetty in java?
What is enterprise information system?