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
I am newbie in J2EE & looking for strong basic behind each concept as, Why do we use private access specifier before each variable of type property bcoz ultimately to access it outside the class we use public method as getter & setter ? If we use getter & setter to access it outside the class so better we make variable as public so that it is easily available outside of the class... Please guide me why do we use as private ????
What is java mobile?
How does event listener work in java?
What are the technologies a java developer must know?
What are the four components of j2ee application?
What do you mean by the component contract?
What is j2ee stack?
What is java naming and directory service?
What is the best java compiler?
What is application component provider?
What is external entity?
Is j2ee a framework?
What are the components of j2ee applications?
What is the container?
What is sandbox in java?