What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().
Answer Posted / ajay
sendRedirect() means it's client side redirect at that time
new parameters can be added.(i.e HttpRequest, HttpResponse)
forward() meand it's server side redirect at that time same
parameters can be used.
forward() can be used forwarding the request from one
servlet to jsp.(i.e with in the container).
redirect() can be used redirecting the one jsp to another
jsp(i.e different containers).
| Is This Answer Correct ? | 56 Yes | 8 No |
Post New Answer View All Answers
What is java 2 platform, micro edition (j2me)?
Why is j2ee needed?
What are the advantages in the use of spring for application development?
What is home interface?
Is string an object in java?
What is content?
What is javaserver pages standard tag library (jstl)?
What is java ee sdk?
What type of code is java?
What is the difference between session bean and entity bean ?
How do you compile java?
What is j2ee application?
What is ear file?
What will happen when you compile and run the following code?
What are the advantages of object-relational mapping (orm)?