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
On which platform j2ee is based?
Explain the four types of container that the j2ee specification defines
What is included in j2ee?
What is the best java application server?
How many types of constructors are there in java?
What is main method in java?
Why do we use j2ee?
Is eclipse written in java?
What do you understand by business logic?
Is java is a technology?
What is initialization parameter?
What is the concept of connection pooling?
What is the build file?
What is document root?
What is credentials?