what is difference between redirect and forward method?

Answer Posted / javahelper

forward() is for sending the data between two applications
in same server only,but sendRedirect() is for sending the
data between two applications between two servers also,
one more different is in forward() mechanism one
request,one response objects will be create but in
sendRedirect() mechanism two request and two response
objects will be create.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does jsp engines instantiate tag handler classes instances?

471


Give the use of session object.

533


What is an implicit object?

463


How many messaging models do jms provide for and what are they?

533


Define jsp declaration?

560






What is the jspdestroy() method?

552


What is the standard action?

515


What is jsp api?

476


Differentiate between response.sendredirect(url) and ?

635


Can we override jsp service method?

472


What is an expression language?

502


What is jsp application?

488


What are the 3 tags used in jsp bean development?

533


Which one is better jsp or servlet?

467


What is the use of?

527