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 can you make the finally clause not to fail to execute?

479


Why is _jspservice () method starting with an '_'?

436


Can you override jspinit() method? If yes, in which cases?

498


How to ignore the el expression evaluation in a jsp?

500


List the various action tags used in jsp.

501






How clear chache and buffer of opera browser.

1933


What are the different scope values for the tag?

468


What is the use of jsp implicit objects?

470


write a program in javasacript to shake the window

2477


Can I stop jsp execution while in the midst of processing a request?

551


Which language is used to write servlets and jsp?

449


What are scripting elements?

530


What is an expression in jsp?

525


Can jsp run without server?

464


What are the jsp tags?

513