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
Why java is oop language?
What is the best java compiler?
How will you explain load() and get() methods?
What are the advantages of object-relational mapping (orm)?
public class ActionSearchBean extends
GenericSearchBean
What is the use of jit compiler in java?
How many types of objects are there in java?
Which is latest technology in java?
What is j2ee called now?
Why awt is used in java?
Is java important for my computer?
What is ejb module?
What is java api for xml processing (jaxp)?
What is j2ee and j2se?
Is java procedural or object oriented?