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 are j2ee technologies?
What is component contract?
What is enterprise information system resource?
What is application configuration resource file?
Is java gui dead?
What is 2 stands for in j2ee?
Describe the file types *.ear, * .jar and *.war?
What is tomcat in j2ee?
what is direct link to download swing ebook,applet,ejb,core java
What is application client container?
What is j2ee tutorial?
What are different modules in spring?
What is the ear file?
What are the technologies a java developer must know?
What is layout manager in java?