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
Write a simple example for the clone() method.
Can you override jspinit() method? If yes, in which cases?
What is the default value of session attribute in jsp?
How can we create jsp custom tags?
What is jsp and its features?
How many types of jsp tags are there?
Can we use javascript in jsp?
Are dialogue tags necessary?
Mention the scope values for
How do I run a jsp file?
How to comment out jsp code?
How can I prevent the use of scripts and java code on the jsp page?
Why session is used?
How jsp is compiled?
Mention the advantages of jsp over pure servlets?