what is difference between redirect and forward method?
Answer Posted / sayed2010
Forward:
1-It takes place internally by the servlet(Server side
operation.
2-The browser is completely unaware that it has taken place.
3-The original request remains unchanged.
4-A browser reload of the resulting page will simply repeat
the original url and the original request.
Redirect:
1-Is a two step process.
2- 1st step-> is that the browser is instructed to fetch a
new url differs from the original url.
3-It require two browser requests.
Object placed in the first request will not be available to
the second request.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why is _jspservice () method starting with an '_'?
What is the include directive?
What do you mean by context initialization parameters?
What do you mean by jsp?
What are directives? What are the different types of directives available in jsp?
Why is used in jsp?
How to include a jsp file in another jsp file?
What do you know about jsp expression language (jsp expression language – el)?
Why is it that JComponent have add() and remove() methods but Component doesn’t?
How many tags are provided in jstl?
What is jstl jar?
Explain JSP directives.
Explain the jspdestroy() method?
What are the steps for creating custom tags in jsp?
What is the jsp:getproperty action?