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 are the four types of J2EE modules?

563


What is cmp in j2ee?

489


What is java awt event?

495


What do you mean by the component contract?

512


What are j2ee concepts?

497






What is jta and jts?

536


Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .

4403


What are the j2ee client types?

519


What is jlayeredpane java?

475


What is fatal error?

564


What is container-managed transaction?

581


What are the topics in j2ee?

513


What are the technologies a java developer must know?

474


Why awt is used in java?

498


What is the difference between load() and get()?

553