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 external subset?
What is the best java application server?
What is application configuration resource file?
Why is java robust?
What is ejb jar file?
What is 'applet container' ?
What does application client module contain?
What is container-managed transaction?
What is j2ee tutorial?
Which java ide is best?
What id url?
What is the latest framework in java?
What are j2ee technologies?
What is java developer?
What is difference between java and core?