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 difference between java and core java?
Is class a data type in java?
What is a plugin in java?
Explain j2ee architecture.
What is build tool in java?
What is java api for xml processing (jaxp)?
What is actionerrors?
What is a java developer?
What is actionform?
What are the technologies a java developer must know?
What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?
What is java full stack developer?
What is repaint in java?
What is home handle?
What is a java application client?