what is the source code for sendRedirect method()java
Servlet program?
Answer / sunny
first,u have to use sendRedirect in form of JSP browserside.
<form method="POST"
action="/SendRedirect/SendRedirectServlet">
second in SendRedirectServlet, u have giving a response to
browser side
response.sendRedirect("/SendRedirect/ValidUserServlet");
it makes a request to one resource in server.
in server, gives response to browser. session is lost at a
time.
| Is This Answer Correct ? | 5 Yes | 2 No |
How can javascript be used to personalize or tailor a web site to fit individual users?
How to set the focus in an element using javascript?
Define unescape() function?
How to write hello world on the web page?
What is the importance of <script> tag?
Is javascript hard to learn?
What are the methods of validating whether the form is secure?
Difference Between JavaScript and ECMAScript?
Explain a story about javascript performance problems?
What is difference between undefined variable and undeclared variable?
Write a way by which you can do something on the close of the window ?
What is the syntax of ‘self invoking function’? Give an example?