What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().
Answer Posted / aravind
forward() is a action element in jsp. it is used to pass
ctrl from current page to another jsp page and it is a
method in jsp.
send redirect() is a method in servlet.
there are two methods used. as
HttpServletResponse.encodeReDirctURL().which takes String
represents a redirction url.next sendredirect() method.
which takes the String returned from the
encoderedirectString() and send it back to the client for
redirection
| Is This Answer Correct ? | 8 Yes | 10 No |
Post New Answer View All Answers
What is j2ee called now?
explain the technologies that j2ee platform provides for developing components.
Why class is used in java?
What is container-managed transaction?
What is content?
What is a plugin in java?
What are the j2ee client types?
What is j2ee specification?
What is awt package in java?
What every java developer should know?
What is sandbox in java?
What are the different types of events in java?
Who is java developer?
how to run servlet program between two computer through internet ?
What is event handling in java?