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 the description for expression element?
What is the use of method saveorupdate()?
What is j2ee product?
Where is java used?
What is the use of jit compiler in java?
What is difference between j2ee and java?
Difference between save and saveorupdate?
What is j2ee stack?
What is data?
What is fatal error?
What does resource adapt module contain?
Which package is imported by default in java?
What is j2ee product provider?
What are the different types of events in java?
Why java is called portable language?