What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().

Answer Posted / neha rajpal

forward mean forwarding the requset to some another jsp or
servlet this is done by server we have do describe the page
in the forward method's argument note thatforward method
argument accept only string ..
while sendredirect is on client side . the new request
object is created.

Is This Answer Correct ?    13 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is j2ee specification?

674


Is java gui dead?

668


What is considered as a web component?

767


Why class is used in java?

656


What is a gui in java?

639


What should a junior java developer know?

648


What is jetty in java?

681


What is java technology stack?

670


What is advance java?

669


Why java is not 100% object oriented language?

700


What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?

701


Enlist the technologies embraced in j2ee?

684


What is java ee used for?

606


Define thin client?

676


What are the components of j2ee applications?

769